My server is centos 7.4 with Apache 2.4.6.
Each time when I systemctl restart httpd
,2 messages will added to /var/log/secure
.Looks like :
Jan 19 8:23:48 localhost polkitd[493]: Registered Authentication Agent for unix-process:5739:174943 (system bus name :1.119 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jan 19 8:23:49 localhost polkitd[493]: Unregistered Authentication Agent for unix-process:5739:174943 (system bus name :1.119, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
What's the problem?
I had to reboot the box to fix this.
I'm sure there's a better solution, but in absence of that... kick it all over.
You can disable SELinux if systemwide security is non critical. Edit the config file found in /etc/selinux/ .Change status of SELINUX from enforcing to disabled. Save and reboot your server.
I got this message because of wrongly placed certificate and key files. Once I got these sorted with the apache config, apache started fine.
Check the file name. The startup script name in the unit file was different than the actual file in init.d