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
[EMAIL PROTECTED]


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to