[Chameleon] RE: Running php as Apache module

Eijnden, B. van den (Bart) b.vdeijnden at agi.rws.minvenw.nl
Tue May 2 10:06:31 EDT 2006


Hi Dejan,

it's general Windows ini file handling.

When PHP runs as CGI, a CGI looks in its own directory and in the Windows
path for the php ini file.

But you have php running as a module, so it can only look in the Windows
path, since there is no current directory of the application.

Best regards,
Bart

-----Oorspronkelijk bericht-----
Van: Gambin Dejan [mailto:Dejan.Gambin at pula.hr]
Verzonden: dinsdag 2 mei 2006 16:08
Aan: Eijnden, B. van den (Bart)
CC: chameleon at lists.maptools.org
Onderwerp: RE: [Chameleon] RE: Running php as Apache module


I have to try it....can you tell me how does ms4w find php.ini in
.../cgi-bin folder? Where is it defined?

dejan

> -----Original Message-----
> From: Eijnden, B. van den (Bart) 
> [mailto:b.vdeijnden at agi.rws.minvenw.nl] 
> Sent: Tuesday, May 02, 2006 3:51 PM
> To: Gambin Dejan; chameleon at lists.maptools.org
> Subject: RE: [Chameleon] RE: Running php as Apache module
> 
> 
> Hi Dejan,
> 
> on Linux we have it working fine.
> 
> What happens if you put your php.ini file somwhere in the 
> Windows' PATH?
> 
> Best regards,
> Bart
> 
> -----Oorspronkelijk bericht-----
> Van: chameleon-bounces at lists.maptools.org
> [mailto:chameleon-bounces at lists.maptools.org]Namens Gambin Dejan
> Verzonden: dinsdag 2 mei 2006 15:45
> Aan: chameleon at lists.maptools.org
> Onderwerp: [Chameleon] RE: Running php as Apache module
> 
> 
> Hi,
> 
> Just a note: if I set:
> 
> AddType application/x-httpd-php .php .phtml
> LoadModule php4_module "E:/apps/gis/ms4w/Apache/php/php4apache2.dll"
> 
> it doesn't work....
> 
> If I add PHPIniDir setting like:
> 
> AddType application/x-httpd-php .php .phtml
> LoadModule php4_module "E:/apps/gis/ms4w/Apache/php/php4apache2.dll"
> PHPIniDir "E:/apps/gis/ms4w/apache/cgi-bin"
> 
> it works but after zooming in for the first time, I get:
> 
> "Error rendering map image:
> A fatal error has occurred restoring your session.
> Please restart the application"
> 
> ...and after that additional some strange behaviours....
> 
> Any help?
> 
> thanks, dejan
> 
> > -----Original Message-----
> > From: Gambin Dejan
> > Sent: Tuesday, May 02, 2006 2:31 PM
> > To: 'chameleon at lists.maptools.org'
> > Subject: Running php as Apache module
> > 
> > 
> > Hi,
> > 
> > I have tried running php as a module but I get:
> > 
> > FATAL ERROR: Session save path () doesn't exist or is not writable
> > Notice: Undefined index: gszSessId in
> > E:\Apps\gis\ms4w\apps\chameleon\htdocs\common\session\session.
> > php on line 162
> > 
> > I am using PHP 4.3.11 and Apache2 on Windows 2000 Server. Any help?
> > 
> > thanks, dejan
> > 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 
> Disclaimer
> **************************************************************
> **********
> Aan dit bericht kunnen geen rechten worden ontleend. Dit 
> bericht is uitsluitend bestemd voor de geadresseerde. Als u 
> dit bericht per abuis hebt ontvangen, wordt u verzocht het te 
> vernietigen en de afzender te 
> informeren. Wij adviseren u om bij twijfel over de juistheid of de 
> volledigheid van de mail contact met afzender op te nemen.
> 
> This message shall not constitute any rights or obligations. 
> This message is intended solely for the addressee. If you 
> have received this message in error, please delete it and 
> notify the sender immediately. When in doubt whether this 
> message is correct or complete, please contact the sender.
> **************************************************************
> **********
> 
> 


Disclaimer
************************************************************************
Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te 
informeren. Wij adviseren u om bij twijfel over de juistheid of de 
volledigheid van de mail contact met afzender op te nemen.

This message shall not constitute any rights or obligations.
This message is intended solely for the addressee.
If you have received this message in error, please delete it and
notify the sender immediately. When in doubt whether this message
is correct or complete, please contact the sender.
************************************************************************



More information about the Chameleon mailing list