Re: PHP and Apache Win32

From: Date: Fri, 01 Mar 2002 17:02:11 +0000
Subject: Re: PHP and Apache Win32
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86789@lists.php.net to get a copy of this message
Yes, you have got a few thing mixed up, to be exact DSO and CGI. The DSO module containing the PHP engine is loaded into Apache, and therefore it doesn't the CGI version (php.exe) anymore. So 'ScriptAlias' is only needed for CGI installations, and you don't need the 'Directory' part either. All you need besides 'AddModule' to load the module, is a specification of what file extensions (.php) should be run through PHP. This can be done with 'AddType', for example:
    AddType application/x-httpd-php .phtml .php
    AddType application/x-httpd-php-source .phps
bvr.
"[Fri Mar 01 13:30:46 2002] [error] [client 127.0.0.1] couldn't spawn child
process: c:/program files/apache group/apache/htdocs/php/test.php" Here is the relevant lines in httpd.conf: <--------------Snipet----------------> LoadModule php4_module modules/php4apache.dll ... AddModule mod_php4.c ... ScriptAlias /php/ "C:/Program Files/Apache Group/Apache/htdocs/php/" <Directory "C:/Program Files/Apache Group/Apache/htdocs/php">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory> <------------------------------------> I suspect that there is an error there somewhere, but can't figure out what.
Regards Gordon


« previous php.general (#86789) next »