Quote:
Originally Posted by Notwerk
Are you sure of the "netstat -na" result, or is that a typo?
If it's not a typo and that is what netstat is acutally reporting, you'll need to revisit the httpd.conf file and fix the problem there.
Try to access Apache using loopback, does that work?
And finally, do a :
Code:
#/etc/init.d/httpd restart
#grep httpd /var/log/messages
#tail /var/log/httpd/error_log
and look for any errors mentioned.
|
Thanks for your excellent questions. They are helping me focus my thinking.
It is hard for me to do anything locally as the computer is so starved of space that I installed a text-only system. I'm going to see about getting lynx installed so I can do basic local testing.
In the meantime, here are some preliminary answers:
1) There is a typo in the local IP address: the actual line reads "tcp 0 0 192.168.0.101:80 0.0.0.0:* LISTEN"
2) I *am* getting some errors in /var/log/messages:
Jun 9 18:46:18 alaric kernel: audit(1149893178.244:10): avc: denied { name_bind } for pid=1744 comm="httpd" src=8181 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket
Jun 9 21:30:05 alaric kernel: audit(1149903005.710:4): avc: denied { name_bind } for pid=2590 comm="httpd" src=8000 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket
tcontext=system_u:object_r:soundd_port_t:s0 tclass=tcp_socket
Jun 9 22:05:00 alaric kernel: audit(1149905100.870:6): avc: denied { name_bind } for pid=3016 comm="httpd" src=81 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:reserved_port_t:s0 tclass=tcp_socket
Jun 9 22:05:52 alaric kernel: audit(1149905152.869:8): avc: denied { name_bind } for pid=3034 comm="httpd" src=81 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:reserved_port_t:s0 tclass=tcp_socket
3) I tried restarting httpd with various settings last night. There is the following /var/log/httpd_log content that was generated each time I did so:
[Fri Jun 09 17:53:34 2006] [notice] Apache/2.2.0 (Fedora) configured -- resuming normal operations
[Fri Jun 09 18:13:21 2006] [notice] caught SIGTERM, shutting down
[Fri Jun 09 18:13:22 2006] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0
[Fri Jun 09 18:13:22 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Jun 09 18:13:26 2006] [notice] Digest: generating secret for digest authentication ...
[Fri Jun 09 18:13:26 2006] [notice] Digest: done
[Fri Jun 09 18:13:26 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
... [to the output of tail]
[Fri Jun 09 23:53:04 2006] [notice] Digest: done
[Fri Jun 09 23:53:04 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Fri Jun 09 23:53:07 2006] [notice] Apache/2.2.0 (Fedora) configured -- resuming normal operations
[Sat Jun 10 00:00:49 2006] [notice] caught SIGTERM, shutting down
[Sat Jun 10 00:04:49 2006] [notice] SELinux policy enabled; httpd running as context user_u:system_r:httpd_t:s0
[Sat Jun 10 00:04:49 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Jun 10 00:04:51 2006] [notice] Digest: generating secret for digest authentication ...
[Sat Jun 10 00:04:51 2006] [notice] Digest: done
[Sat Jun 10 00:04:52 2006] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sat Jun 10 00:04:53 2006] [notice] Apache/2.2.0 (Fedora) configured -- resuming normal operations
I confess myself clueless as to what any of this means. However, it does seem that they reflect errors with how how HTTPD is operating, and I will immediately start investigating. In the meantime, any further help would be greatly appreciated, thanks!
Ben