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
[ec2-user@linuxbyimraan ~]$ sudo systemctl restart httpsd
And thats it… Easy Peezy