RE: [PHP-WIN] Re: Problems installing PHP4.0.6 to work with Apache 1.3.20 for Win 2000
| From: | Matt Williams | Date: | Fri, 06 Jul 2001 08:44:02 +0000 |
| Subject: | RE: [PHP-WIN] Re: Problems installing PHP4.0.6 to work with Apache 1.3.20 for Win 2000 | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8144@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> > But Apache couldn't process this hello.php... it gave me this
> > error.
> > > >
> > [Fri Jul 06 06:35:08 2001] [error] [client 127.0.0.1]
> c:/php/hello.php is
> > not executable; ensure interpreted scripts have "#!" first line
> > [Fri Jul 06 06:35:08 2001] [error] [client 127.0.0.1] couldn't
> spawn child
> > process: c:/php/hello.php
> >
> > Can someone tell me where did I go wrong?
> >
Add
AddType application/x-httpd-php .php3 .php .php4
LoadModule php4_module "c:/php/sapi/php4apache.dll"
to your httpd.conf.
Remove
Action application/x-httpd-php "/php/php.exe"
ScriptAlias /php/ "c:/php/"
This will tell apache to load the module version
of php. Unless you want the cgi version.
This works with my setup (2k, apache 1.3.19, php4.0.5)
M@
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBO0V5RaW0/zC+QxWwEQKMAACgsaYhhrQn7j8vqTFnQQCOoIq4WIAAn3YT
Rz/j15jXrNjhjYQi6uL9jlmF
=13Zg
-----END PGP SIGNATURE-----