I know its a very small post, and you probably or most likely wont face the same issue but thought I should add it just in case someone does.

So the reason you are here is because you tried restarting your Apache web server and getting the following error:

[ec2-user@linuxbyimraan ~]$ systemctl restart httpsd
Failed to restart httpsd.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status httpsd.service’ for details.

 

The fix is quite simple. So basically, It’s a permission issue with the apache server the systemctlcommand should be run with root privileges:

[ec2-user@linuxbyimraan ~]$ sudo systemctl restart httpsd
[ec2-user@linuxbyimraan ~]$

 

And thats it… Easy Peezy

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *