RE: [PHP-INST] Premature end of script headers?
| From: | Michael Richardson | Date: | Tue, 13 Mar 2001 23:56:28 +0000 |
| Subject: | RE: [PHP-INST] Premature end of script headers? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-2376@lists.php.net to get a copy of this message | ||
Thie script should be in your www directory, not in the cgi-bin directory.
The server is attempting to run it as a cgi script rather than a module.
Michael Richardson
-----Original Message-----
From: Celeste Suliin Burris [mailto:local120@local120.org]
Sent: Tuesday, March 13, 2001 2:01 PM
To: php-install@lists.php.net
Subject: [PHP-INST] Premature end of script headers?
I have tried for quite a while to get php to run. It compiles fine, but
when I attempt to run it as an apache module, I get the same message in the
apache logs time after time.
The apache error_log output is:
[Mon Mar 12 18:12:04 2001] [notice] Apache/1.3.19 (Unix) PHP/4.0.4pl1
mod_perl/1.25 configured -- resuming normal operations
[Mon Mar 12 18:12:04 2001] [notice] suEXEC mechanism enabled (wrapper:
/usr/local/apache/bin/suexec)
[Mon Mar 12 18:12:04 2001] [info] Server built: Mar 12 2001 18:00:15
[Tue Mar 13 13:20:39 2001] [error] [client 131.191.215.240] Premature end of
script headers: /usr/local/apache/share/cgi-bin/test1.php
The apache_script log output is:
%% [Tue Mar 13 13:20:39 2001] GET /cgi-bin/test1.php HTTP/1.0
%% 500 /usr/local/apache/share/cgi-bin/test1.php
%request
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Charset: iso-8859-1,*,utf-8
Accept-Encoding: gzip
Accept-Language: en,pdf
Connection: Keep-Alive
Host: geobase1.ci.tacoma.wa.us
User-Agent: Mozilla/4.76 (Macintosh; U; PPC)
%response
%stderr
[Tue Mar 13 13:20:39 2001] [error] (8)Exec format error: exec of
/usr/local/apache/share/cgi-bin/test1.php failed
The config cache gives the following:
# ./configure
--with-apache=/sysadmin/webdev/apache/apache_toolbox/Apachetoolbo
x-1.5.15/apache_1.3.19 --with-mysql=/usr/local/mysql
I have the following line in my httpd.conf:
AddType application/x-httpd-php .php .phtml
I am running Solaris 7 on a Sun Ultra E450.
Any help would be greatly appreciated, since I am about ready to throw in
the towel and return to mod_perl.
Celeste Suliin Burris
local120@local120.org
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
For additional commands, e-mail: php-install-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net