Problems installing PHP4.0.6 to work with Apache 1.3.20 for Win 2000
| From: | Lee Seng Fook | Date: | Thu, 05 Jul 2001 22:53:32 +0000 |
| Subject: | Problems installing PHP4.0.6 to work with Apache 1.3.20 for Win 2000 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-8135@lists.php.net to get a copy of this message | ||
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