Re: Problems installing PHP4.0.6 to work with Apache 1.3.20 for Win 2000
| From: | Michel Laine | Date: | Fri, 06 Jul 2001 08:10:37 +0000 |
| Subject: | 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-8143@lists.php.net to get a copy of this message | ||
I don't know anything about apache - and i suppose that this don't have anything
to do with your error, but shouldn't the php/html files be located in your
"webroot" dir?
Lee Seng Fook wrote:
> Hi,
>
> I am new to PHP. I have just downloaded PHP 4.0.6 and Apache 1.3.20
> I followed the online documentation to get PHP in CGI-mode to run on Apache,
> i added the following lines in my httpd.conf file as follows.
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
> Action application/x-httpd-php "/php/php.exe"
>
> But this is my first php script "hello.php" which i put in c:\php directory
>
> <html>
> <head>
> <title>PHP Testing</title>
> </head>
> <body bgcolor=#ffffff>
> <?php echo "Hello World<p>"; ?>
> </body>
> </html>
>
> 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?
>
> Appreciate your help. Many thanks.
>
> --
>
> :-)
> Lee
--
Michel Laine