Httpd requires restart after reboot

Issues related to configuring your network
Post Reply
pietro
Posts: 2
Joined: 2016/12/05 07:58:17

Httpd requires restart after reboot

Post by pietro » 2016/12/05 08:09:37

Hello,

I have inherited an HTTPS server running CentOS 6 which needs to connect to LDAP for authentication. The server worked fine until I had to reboot it. It appears that after each reboot Apache needs to be restarted before users can see HTTPS pages. Stopping iptables does not help.

I suppose I could add a task to restart Apache after reboot but I'd like to understand the underlying problem. I do not know where to look however. The original system administrator is no longer around to assist and I'm entirely unqualified at administrating servers. Any help or pointers would be greatly appreciated.

Here is the iptables configuration:

Code: Select all

[root@ip-xxxxxx ~]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ssh
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:https
ACCEPT     tcp  --  anywhere             anywhere            state NEW tcp dpt:ldap
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
REJECT     all  --  anywhere             anywhere            reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Httpd requires restart after reboot

Post by TrevorH » 2016/12/05 10:37:43

Are there any entries in the output from aureport -a with timestamps that match your last reboot time?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

pietro
Posts: 2
Joined: 2016/12/05 07:58:17

Re: Httpd requires restart after reboot

Post by pietro » 2016/12/05 10:44:45

Hello Trevor,

I don't think so.

Code: Select all

[root@ip-xxx ~]# aureport -a

AVC Report
========================================================
# date time comm subj syscall class permission obj event
========================================================
<no events of interest were found>

[root@ip-xxx ~]# uptime
 10:43:49 up  2:38,  1 user,  load average: 0.00, 0.00, 0.00

Post Reply