[mapserver-users] PHP3 or PHP4 ???

Daniel Morissette morissette at dmsolutions.ca
Mon May 28 19:58:35 EDT 2001


Janet Ciavarelli wrote:
> 
> I installed PHP4 but now I'm having a hard time getting it to work (in Windows NT). I'm not sure what you mean by installing my PHP4 as a CGI. There seems to be very little about this in the installation manual. Do you mean just copy php.exe into the cgi-bin?
> 

No it's not just a matter of copying the php.exe to cgi-bin, but it's
not very complicated either.  Assuming you're using Apache, follow the
instructions attached below for the CGI case (i.e. skip the part about
the Apache module)... it's a copy of what you find in the file
install.txt in the PHP 4.0.4 Win32 distribution.  There is also
instructions for the other web servers in that same install.txt.

-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------
  Don't put for tomorrow what you can do today, because if 
      you enjoy it today you can do it again tomorrow.


Installtion instructions
------------------------

Apache:
1. Stop the Apache Webserver.
Edit the httpd.conf and put in these lines, modified to your
environment:
2. Unzip the Package to c:\php, now move php4ts.dll to the
windows/system(32) directory, overwritte any older file!

# for the apache module
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4

#for the cgi binary (you can use that one compiled with force cgi
redirect too)
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php

3. Copy the php.ini-dist to your sysroot (directory where you installed
windows), rename it to php.ini, and
edit the php.ini to fit your needs.
4. Restart the Apache server.




More information about the mapserver-users mailing list