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



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to