Hi there,
not so long ago I re-configured PHP 4.1.1 at my company's internal development system to run as CGI and not as an Apache-Module under Apache 1.3.23.
This is done via the following lines in httpd.conf-file :
-x-x-
AddType application/x-httpd-php .php
ScriptAlias /php/ "/usr/local/php/current/"
Action application/x-httpd-php "/php/bin/php"
-x-x-
This configuration works, but not that good as I would like it to. So, for this when I call phpinfo() I can see, that the variable SCRIPT_NAME is always set to "php/bin/php", what makes no sense at all. Further I noticed some differences and miss-behaviours in Apache's RewriteRules when using this configuration.
So, does anyone out there implement PHP as CGI under Apache on a Linux-System and cann tell me how to implement it better in httpd.conf, some smaple lines as above would help.
Thanks for your support.
Oliver Neumann