httpd avc denied problem

Arthur Stephens astephens at ptera.net
Mon Nov 29 18:40:32 UTC 2004


I have a brand new install of Fedora Core 3 running
I transfered our websites over and discovered I had to have them all under /usr/www/
After shuffling files around, correcting httpd.conf and running fixfiles I have been able to get all but this one stubborn one to work.

httpd/error_log
(13)Permission denied: httpd: could not open error log file /usr/www/spokanewines.com/logs/error_log.
Unable to open logs

/var/log/message
Nov 26 19:26:20 webmail kernel: audit(1101525980.703:0): avc:  denied  { write } for  pid=2345 exe=/usr/sbin/httpd name=logs dev=dm-0 ino=552202 scontext=root:system_r:httpd_t tcontext=system_u:object_r:usr_t tclass=dir
Nov 26 19:26:20 webmail httpd: httpd startup failed

/etc/httpd/conf/httpd.conf
<VirtualHost *:80>
        ServerName www.spokanewines.com
        ServerAlias spokanewines.com
        ServerAdmin webmaster at ptera.net
        DocumentRoot /usr/www/spokanewines.com
        ErrorLog /usr/www/spokanewines.com/logs/error_log
        CustomLog /usr/www/spokanewines.com/logs/access_log common
        DirectoryIndex index.html index.htm index.php
        ScriptAlias /cgi-bin/ /usr/www/spokanewines.com/cgi-bin/
        <Directory /usr/www/spokanewines.com/cgi-bin>
                options +ExecCGI
                AddHandler cgi-script cgi pl
        </Directory>
</VirtualHost>

ls -al spokanewines.com/
total 56
drwxrwxrwx   5 root root 4096 Nov 26 18:41 .
drwxr-xr-x  18 root root 4096 Nov 26 18:04 ..
drwxr-xr-x   2 root root 4096 Nov 26 18:33 cgi-bin
-rw-r--r--   1 root root 2490 Apr 12  2004 index.htm
drwxr-xr-x   2 root root 4096 Nov 26 18:41 logs
-rw-r--r--   1 root root 2030 Feb  5  2004 spokane.htm
drwxr-xr-x   4 root root 4096 Nov 26 18:34 SWA

Any one understand why?

Arthur Stephens
Sales Technician
Ptera Wireless Internet
astephens at ptera.net
509-927-Ptera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041129/7a0a08a9/attachment-0001.htm>


More information about the fedora-list mailing list