Suexec and Awstats issue

4 posts / 0 new
Last post
#1 Wed, 05/21/2008 - 01:32
chittu

Suexec and Awstats issue

I have been having issues in accessing awstats reports on the virtualhosts.... I see the following errors in my log files...

[Wed May 21 06:29:44 2008] [error] [client ] suexec policy violation: see suexec log for more details [Wed May 21 06:29:44 2008] [error] [client ] Premature end of script headers: awstats.pl

Suexec.log shows....

[2008-05-21 06:29:41]: command not in docroot (/www/domain.com/cgi-bin/awstats.pl) [2008-05-21 06:29:44]: uid: (508/domain.com) gid: (509/509) cmd: awstats.pl

Can somebody please help me with this....

chittu

Fri, 10/10/2008 - 05:16
Hal9000

i have the same problem :(
did you manage to solve it?

Fri, 10/10/2008 - 10:08 (Reply to #2)
chittu

Yes, As i installed httpd using the rpm base, just downloaded the srpm and then changed the suexec home in the .spec file and then rebuilded and then just installed the rpm using replacefiles, replacepackages options... All worked fine after that...

Chetan

Fri, 10/10/2008 - 11:03 (Reply to #3)
andreychek

Just FYI, this just means you don't have the Virtualmin Apache packages installed (which are installed when using the install.sh script).

The Virtualmin Apache packages are near-identical to the distro-specific ones, except that suexec is compiled to work on /home.

So, you can definitely solve it by recompiling, but another method is just to grab the Virtualmin files -- http://software.virtualmin.com if you have the Pro version, and http://software.virtualmin.com/gpl/ if you have Virtualmin GPL.
-Eric

Topic locked