Spread the love

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 httpd
Failed to restart httpd.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and ‘systemctl status httpd.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 httpd
[ec2-user@linuxbyimraan ~]$


And thats it… Easy Peezy



No token or token has expired.

Leave a Reply

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