Error with AWStats Suexec

HageHosting

Verified User
Joined
Sep 25, 2006
Messages
66
My awstats didnt generate new stats for 1 november 2010 so i did the update with wget to get updated awstats but now the problem is i get
a error 500 when they visit to www.domain.com/stats

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.




This is wat i see in my log files.




SUexec.log
[2010-11-02 11:13:18]: uid: (1043/kicken) gid: (1043/kicken) cmd: awstats.pl
[2010-11-02 11:13:18]: target uid/gid (1043/1043) mismatch with directory (0/0) or program (1043/1043)
[2010-11-02 11:20:25]: uid: (1043/kicken) gid: (1043/kicken) cmd: awstats.pl
[2010-11-02 11:20:25]: target uid/gid (1043/1043) mismatch with directory (0/0) or program (1005/1003)
[2010-11-02 11:20:27]: uid: (1043/kicken) gid: (1043/kicken) cmd: awstats.pl
[2010-11-02 11:20:27]: target uid/gid (1043/1043) mismatch with directory (0/0) or program (1005/1003)
[2010-11-02 11:23:09]: uid: (1043/kicken) gid: (1043/kicken) cmd: awstats.pl
[2010-11-02 11:23:09]: target uid/gid (1043/1043) mismatch with directory (0/0) or program (1043/1043)
[2010-11-02 11:23:10]: uid: (1043/kicken) gid: (1043/kicken) cmd: awstats.pl
[2010-11-02 11:23:10]: target uid/gid (1043/1043) mismatch with directory (0/0) or program (1043/1043)

And Domain.log
Tue Nov 02 11:23:09 2010] [error] [client 82.176.75.162] Premature end of script headers: awstats.pl
[Tue Nov 02 11:23:09 2010] [error] [client 82.176.75.162] File does not exist: /home/kicken/domains/xxxxxxx.fm/public_html/500.shtml
[Tue Nov 02 11:23:10 2010] [error] [client 82.176.75.162] suexec policy violation: see suexec log for more details
[Tue Nov 02 11:23:10 2010] [error] [client 82.176.75.162] Premature end of script headers: awstats.pl
 
Hello,

This bit:
Code:
directory (0/0)
means that the awstats directory (/home/user/domains/domain.com/awstats) is chowned to root. It should be chowned to the user.

John
 
I'm facing a familiar problem on one of our servers.

Our config:
Centos 5.5 x64
Server version: Apache/2.2.17 (Unix)
PHP 5.2.17 (cli)

This is in the users directory (/home/user/domains/domain/):

48 drwxrwx--- 3 babynl babynl 49152 Jan 27 13:23 awstats

The username is correctly chowned, but yet I keep getting this error in the log:

[Thu Jan 27 13:25:37 2011] [error] [client 188.201.248.81] suexec policy violation: see suexec log for more details
[Thu Jan 27 13:25:37 2011] [error] [client 188.201.248.81] Premature end of script headers: awstats.pl
[Thu Jan 27 13:25:37 2011] [error] [client 188.201.248.81] File does not exist: /home/babynl/domains/babylonscollection.nl/public_html/500.shtml

The suexec log tells me:

[2011-01-27 13:25:37]: user mismatch (babynl instead of apache)


I tried changing the owner of the folder awstats to apache, then it still doesn't work, and suexec log tells me:

[2011-01-27 13:26:41]: uid: (505/babynl) gid: (505/babynl) cmd: awstats.pl
[2011-01-27 13:26:41]: cannot get docroot information (/)

Any ideas?

Thanks!
 
Back
Top