FW: premature end of script headers

From: Date: Tue, 30 May 2000 15:08:09 +0000
Subject: FW: premature end of script headers
Groups: php.general 
Request: Send a blank email to php-general+get-640@lists.php.net to get a copy of this message
Greetings, all. Hopefully you can help me with some difficulty I am having: I compiled and installed php 4.0.0 (release) as a dynamic module (Apache) on my rh6.1 machine running apache secure server 3.1-1 (equiv to 1.3.10 ?) , and included support for MySQL. No errors during the install or build, seems to have gone ok, but when trying to load php files on the server I get a 500 internal server error. in the error log I see: [Wed May 24 13:58:45 2000] [error] (8)Exec format error: exec of /home/httpd/cgi-bin/phptest.php failed [Wed May 24 13:58:45 2000] [error] [client 192.168.1.29] Premature end of script headers: /home/httpd/cgi-bin/phptest.php here are the permissions on the file, just so you know... -rwxrwxrwx 1 nobody nobody 16 May 24 13:46 phptest.php and its text is: <? phpinfo() ; ?> It is running in a script aliased directory, and the LoadModule, AddModule, and AddType directives for php4 are set in the apache configuration file. Looking at this more in depth, perhaps it is a problem with suEXEC (which runs as a part of secureweb)? I also built and installed the cgi interpreter, and get the error: No input file specified Any help that could be offered on this would be greatly appreciated. I know the Premature end of script headers error generally indicates a permissions or syntax problem. It is recognizing that the php file is a script, because if I put it in a non cgi directory I get this error: [Wed May 24 13:46:54 2000] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /home/httpd/html/phptest.php Jason C. North Network Operations Team Lead 303-893-4053 xt 214 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_- Things that appear unlikely, impossible, or paradoxical from one point of view often make perfectly good sense from another... --Hugh Nibley

« previous php.general (#640) next »