[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

php and apache2 errors



Could someone tell me where I've gone wrong - I'm clearly missing
something. This is a setup which had been working for quite a while, but
its been weeks since I've used it, and Im not sure whats changed. Im
running debian unstable, with apache2 (prefork) and libapache2-mod-php4

When I try browse to a php file served by my apache2 setup I get error
500, with the message "Premature end of script headers:
phpinfo.php" (where phpinfo.php is the script with the content
<?phpinfo.php?>).

/var/log/apache2/error.log tells me the user is not allowed to run
scripts.

If it try it from /home/*/public_html - same error, but in log file the
message is that "script is not in document root"

As far as I can tell from the apache2 documentations is that the error
"Premature end of script headers" relates to cgi - afaik, using mod_php4
is _not_ using cgi - correct? There are AddType Application clauses for
php, but no php clause agains and AddHandler directives.

AFAIK all the permissions on directories are ok - I can su to www-data
and go to any script thats giving me grief and execute it with the
command line php <scriptname> with no problem, so I guess its in my
apache2 configuration.

Im going out of my mind with this - I don't think its actally a prob
with the default debian config as after googling for a while I seem to
be be only one in this same scenario - any ideas, anyone?

thanks
Glenn



Reply to: