awstats munged httpd rights in SElinux, how to fix?

Gene Heskett gene.heskett at
Wed Jul 30 22:12:58 UTC 2008


Wanting to see who might have visited my simple web page, I installed awstats 
from the fedora repo today.

The awstats selinux helper seems to be an empty file, yumex win't dl it or 
install it even when checked.

>From the yumex screen:
7:59:02 : Package Queue:
17:59:02 :  Packages to install
17:59:02 :  ---> awstats-selinux-6.7-1.fc8.noarch 
17:59:02 : Preparing for install/remove/update
17:59:02 : --> Preparing for install
17:59:02 : Package awstats-selinux is obsoleted by awstats, trying to install 
awstats-6.8-1.fc8.noarch instead
17:59:02 : Package awstats-6.8-1.fc8.noarch already installed and latest 
17:59:06 : Error in Dependency Resolution
17:59:06 : Success - empty transaction

which is self-explanatory.

But on attempting to look at my page at localhost, I get connection refused.

So I as root, do:service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: (13)Permission denied: httpd: could not open error log 
file /etc/httpd/logs/error_log.
Unable to open logs

And an selinux denial that says I can fix it with this:
#> setsebool -P httpd_unified=1 

But I've now executed that line several times without success.

I've also gone through the httpd stuff and made much of it 0644 and owned by 

Obviously I'm suffering from the local heat and missing the flashing red light 
here, so what is next folks?  It was all working AFAIK before I installed 
awstats, when running kernel 2.6.26 just yesterday, but now booted to 
2.6.27-rc1.  Dunno which is the culprit.  Help!

Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
I don't make the rules, Gil, I only play the game.
		-- Cash McCall

More information about the fedora-list mailing list