• 1
I instead receive a "You don't have permission to access / on this server." "Apache/2.2.3 (Fedora) Server at localhost Port 80" No Icon for selinux
Could you include a screenshot of the event?

[root@Notebook1 ~]# service setroubleshoot restart
Stopping setroubleshootd: [ OK ]
Starting setroubleshootd: [ OK ]
[root@Notebook1 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@Notebook1 ~]# ls -la /var/www/html
total 24
drwxr-xr-x 2 root root 4096 Nov 21 04:51 .
drwxr-xr-x 6 root root 4096 Nov 18 20:33 ..
-rw-r--r-- 1 jim jim 201 Nov 21 05:02 index.html
[root@Notebook1 ~]# su jim
[jim@Notebook1 root]$ /sbin/service --status-all
anacron is stopped
atd is stopped
automount is stopped
Avahi daemon is not running
Avahi DNS daemon is not running
hcid is stopped
sdpd is stopped
capi not installed - No such file or directory (2)
cpuspeed is stopped
crond (pid 2208) is running...
cupsd is stopped
cups-config-daemon is obsolete
cat: /var/run/dhcdbd.pid: Permission denied
Device not specified in /etc/sysconfig/diskdump
dund is stopped
Usage: /etc/init.d/firstboot {start|stop}
gpm (pid 2176) is running...
hald is stopped
hidd is stopped
hpiod is stopped
hpssd is stopped
Only 'root' may use this init script
httpd (pid 6901) is running...
/etc/init.d/ip6tables: line 45: /etc/sysconfig/ip6tables-config: Permission denied
Firewall is not configured. <--- maybe the issue is here? selinux is set to enforcing.
irattach is stopped
lircmd is stopped
lircd is stopped
mdmpd is stopped
dbus-daemon (pid 5064) is running...
multipathd is stopped
nasd dead but subsys locked
Server address not specified in /etc/sysconfig/netdump
netplugd is stopped
Configured devices:
lo eth0 eth1
Currently active devices:
lo eth0 eth1
NetworkManager (pid 2385) is running...
NetworkManagerDispatcher is stopped
rpc.mountd is stopped
nfsd is stopped
rpc.rquotad is stopped
rpc.statd (pid 1892) is running...
nscd is stopped
ntpd is stopped
pand is stopped
/etc/init.d/functions: line 137: /var/run/pcscd.pid: Permission denied
pcscd dead but pid file exists
portmap dead but subsys locked
Process accounting is disabled.
rdisc is stopped
restorecond (pid 4652) is running...
rpc.idmapd is stopped
saslauthd is stopped
sendmail is stopped
smartd dead but subsys locked
spamd is stopped
sshd (pid 2065) is running...
/etc/init.d/functions: line 137: /var/run/syslogd.pid: Permission denied
syslogd dead but pid file exists
/etc/init.d/functions: line 137: /var/run/klogd.pid: Permission denied
klogd dead but pid file exists
Xvnc is stopped
winbindd is stopped
wpa_supplicant is stopped
xfs (pid 2246) is running...
ypbind is stopped



A: forgot that apache needs to be the owner of files and the setcon error popped up

B: change the type to httpd_sys_content_t resolvce

  • 1

Log in