Re: [mapserver-users] Regarding Apache
My experience is the following: I'm using PHP MapScript since ~ 2 years as Apache DSO without noticing problems. Important is to use the Apache 'prefork MPM' version of Apache 2.+ (or Apache 1.3 which seems always 'prefork'). Using the threaded MPM ('worker') of Apache seems not to work correctly with Mapscript. And the PHP docs recommend the prefork MPM anyway. Apache on Windows seems always to be threaded, therefore PHP should be used only as CGI when Mapscript is required. Regards, Armin On 06/02/2009 09:58, Gregor at HostGIS wrote: Amiya Patra wrote: *PHP/MapScript and PHP has a habit of causing Apache to effectively freeze* But how to solve that one... If you suspect that that's the problem with your server, do what everyone else does: compile and run PHP as a CGI program, not as a DSO. It is unfortunate. By using PHP as a CGI, you fix that problem, but lose a lot of the benefits of PHP as DSO, such as database connection pooling and being able to use Zend Optimizer. But if you're using PHP/MapScript that's just how it is. ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Regarding Apache
Gregor at HostGIS wrote: We use PHP/MapScript extensively, but for the rendering we use shp2img via the `` operator. This gets around the freezing problem, as well as a few other bugs in draw() which we found unacceptable. We're always interested in making PHP MapScript better, especially when it comes to crashes of freezes. If you have identified specific bugs with reproduceable test cases, then we'd appreciate if you could file tickets with all the details (or point us to the existing ticket if there is one). Thanks Daniel -- Daniel Morissette http://www.mapgears.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Regarding Apache
Amiya Patra wrote: *PHP/MapScript and PHP has a habit of causing Apache to effectively freeze* But how to solve that one... If you suspect that that's the problem with your server, do what everyone else does: compile and run PHP as a CGI program, not as a DSO. It is unfortunate. By using PHP as a CGI, you fix that problem, but lose a lot of the benefits of PHP as DSO, such as database connection pooling and being able to use Zend Optimizer. But if you're using PHP/MapScript that's just how it is. I do have one workaround which suits us well at one site: We I figured out that it's the imgObj->draw() method that causes the freezes (in our use cases). We use PHP/MapScript extensively, but for the rendering we use shp2img via the `` operator. This gets around the freezing problem, as well as a few other bugs in draw() which we found unacceptable. -- Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Regarding Apache
*PHP/MapScript and PHP has a habit of causing Apache to effectively freeze* But how to solve that one... On Fri, Feb 6, 2009 at 1:33 PM, Gregor at HostGIS wrote: > Apache is crashing? Ouch. > > Question: Are you using PHP/MapScript and PHP as a DSO instead of a CGI? > That has a habit of causing Apache to effectively freeze but not crash. > > -- > Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+ > System Administrator, Lead Programmer > HostGIS development & hosting services, http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] Regarding Apache
Apache is crashing? Ouch. Question: Are you using PHP/MapScript and PHP as a DSO instead of a CGI? That has a habit of causing Apache to effectively freeze but not crash. -- Gregor Mosheh / Greg AllensworthBS, A+, Network+, Security+, Server+ System Administrator, Lead Programmer HostGIS development & hosting services, http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users