1 |
On Sat, 2007-01-06 at 21:50 -0500, James Lockie wrote: |
2 |
> Michael Sullivan wrote: |
3 |
> > Whenever I request a page on my server that runs PHP (with suPHP/PHP5) I |
4 |
> > get Internal Server Errors. From my log files: |
5 |
> > |
6 |
> > bullet apache2 # cat suphp_log |
7 |
> > [Sat Jan 06 15:15:07 2007] [info] Executing |
8 |
> > "/home/michael/webspace/html/camera/index.php" as UID 1000, GID 100 |
9 |
> > [Sat Jan 06 15:17:05 2007] [info] Executing |
10 |
> > "/home/michael/webspace/html/camera/index.php" as UID 1000, GID 100 |
11 |
> > bullet apache2 # cat error_log |
12 |
> > [Sat Jan 06 15:14:46 2007] [notice] suEXEC mechanism enabled |
13 |
> > (wrapper: /usr/sbin/suexec2) |
14 |
> > [Sat Jan 06 15:14:53 2007] [notice] Digest: generating secret for digest |
15 |
> > authentication ... |
16 |
> > [Sat Jan 06 15:14:53 2007] [notice] Digest: done |
17 |
> > [Sat Jan 06 15:14:55 2007] [notice] Apache configured -- resuming normal |
18 |
> > operations |
19 |
> > [Sat Jan 06 15:15:08 2007] [error] [client 70.234.122.250] Premature end |
20 |
> > of script headers: index.php |
21 |
> > [Sat Jan 06 15:15:08 2007] [error] [client 70.234.122.250] terminate |
22 |
> > called after throwing an instance of 'suPHP::SystemException' |
23 |
> > [Sat Jan 06 15:17:05 2007] [error] [client 70.234.122.250] Premature end |
24 |
> > of script headers: index.php |
25 |
> > [Sat Jan 06 15:17:05 2007] [error] [client 70.234.122.250] terminate |
26 |
> > called after throwing an instance of 'suPHP::SystemException' |
27 |
> > bullet apache2 # |
28 |
> > |
29 |
> > |
30 |
> > This annoys me because there is no other information. Has anyone dealt |
31 |
> > with this before? |
32 |
> > |
33 |
> > |
34 |
> > |
35 |
> Check your pages: http://validator.w3.org/ |
36 |
> |
37 |
> Can you run the PHP from the command line? |
38 |
> |
39 |
|
40 |
Yes. I can run the the index.php script on the command line. It spits |
41 |
out text, as it should. What was that saying about "Premature end of |
42 |
script headers"? If I remove the "-D SUPHP" bit |
43 |
from /etc/conf.d/apache2 and restart apache2, it works just fine. I |
44 |
need suPHP to work for another script though. With suPHP enabled, not |
45 |
even Squirrelmail works. It used to. I don't know what happened... |
46 |
|
47 |
-- |
48 |
gentoo-user@g.o mailing list |