Re: [PHP] PHP and Apache Win32

2002-03-01 Thread [EMAIL PROTECTED]

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/"
 >
 > AllowOverride None
 > Options None
 > Order allow,deny
 > Allow from all
 >
 ><>
 >
 >I suspect that there is an error there somewhere, but can't figure out 
what.
 >
 >Regards
 >
 >Gordon
 >
 >
 >





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and Apache Win32

2002-03-01 Thread Gordon Bergström

Greetings.

Got a, I think, pretty easy question if you know of it.

Running Apache with PHP. I always get a 500 Error page when I try to access
the php file. I have run php.exe -i and it all looks good. I am running php
as a DSO under Apache. In Apache error.log there is a line that say

"[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/"

 AllowOverride None
 Options None
 Order allow,deny
 Allow from all

<>

I suspect that there is an error there somewhere, but can't figure out what.

Regards

Gordon



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php