[Mapserver-users] Using PHP as CGI when compiled as DSO
Jason Thaxter
thaxter at gomoos.org
Wed Mar 17 10:37:22 PST 2004
Yet another way to run PHP CGI when compiled as a DSO and/or free-standing
language (but not as a CGI).
As usual:
In httpd.conf:
Action phtml-script /cgi-bin/php
AddHandler phtml-script .phtml
This assumes that /cgi-bin is a ScriptAlias'd directory, e.g.:
ScriptAlias /cgi-bin/ /path/to/cgi-bin
But:
In the CGI directory, make php the following script:
#!/bin/sh
php -f $PATH_TRANSLATED
This assumes that php can be found in the $PATH under which Apache runs. Make
it:
/path/to/your/php -f $PATH_TRANSLATED
if in doubt...
I'm adding a note to the Wiki. Hopefully this Wiki page will keep evolving for
as long as PHP mapscript cannot run as a module.
Jason
--
----------------------------------------------
Jason Thaxter
GoMOOS, P.O. Box 4919, Portland, ME 04112-4919
Office Location: 1 Canal Plaza, 7th Floor
Office: 207.773.0423
Fax: 207.773.8672
Email: thaxter at gomoos.org
------------www.gomoos.org--------------------
More information about the MapServer-users
mailing list