RE: premature end of script headers

From: Date: Wed, 24 May 2000 20:37:14 +0000
Subject: RE: premature end of script headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-478@lists.php.net to get a copy of this message
Looking at this more in depth, perhaps it is a problem with suEXEC (which runs as a part of secureweb)? > -----Original Message----- > From: Jason C. North [mailto:jnorth@bizblast.com] > Sent: Wednesday, May 24, 2000 2:07 PM > To: jnorth@bizblast.com > Subject: premature end of script headers > > > 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 > on my rh6.1 > machine running apache secure server 3.1-1 , and included support > for MySQL. > No errors during the install, seems to have gone ok, but when > trying to load > php files 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. > 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 > 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 (#478) next »