.php script not executable...???
| From: | Glenn Trimble | Date: | Sat, 04 Nov 2000 22:36:37 +0000 |
| Subject: | .php script not executable...??? | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-615@lists.php.net to get a copy of this message | ||
Please pardon my ignorance -- I am brand new at php and have followed the instructions that were on
thickbook.com to install and setup Apache & PHP on Windows2000.
I have created a simple script and put it the ScriptAlias directory which is:
ScriptAlias /php/ "d:/php/php/"
The Apache error.log file has the following messages...
[Sat Nov 04 17:15:00 2000] [error] [client 127.0.0.1] d:/php/php/helloworld.php is not executable;
ensure interpreted scripts have "#!" first line
[Sat Nov 04 17:15:00 2000] [error] [client 127.0.0.1] couldn't spawn child process:
d:/php/php/helloworld.php
I did not think that the script needed a #! but the error.log file seemed to think so, so I edited
the script and added it on line 1. Then the error.log file read...
[Sat Nov 04 17:15:30 2000] [error] [client 127.0.0.1] Premature end of script headers:
d:/php/php/helloworld.php
Can anyone out there please help me?
Thanks,
Glenn Trimble
gtrimble@hotmail.com