I'm trying to restart my amazon EC2 Apache server, and I'm getting an error message that says
(13)Permission denied: AH00058: Error retrieving pid file /var/run/httpd/httpd.pid AH00059: Remove it before continuing if it is corrupted.
I'm trying to restart it using apachectl graceful
.
Can't post an image due to rep, but here's exactly what Terminal is showing:
Last login: Thu Feb 25 21:53:05 on ttys001
Jeffs-MacBook-Pro:~ jeffArries$ ssh -i /Users/jeffArries/Desktop/jeffarries.pem ec2-user@ec2-54-213-219-247.us-west-2.compute.amazonaws.com
Last login: Fri Feb 26 05:53:07 2016 from 71.83.110.240
__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-ami/2015.09-release-notes/
[ec2-user@ip-172-31-31-54 ~]$ apachectl graceful
(13)Permission denied: AH00058: Error retrieving pid file /var/run/httpd/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
[ec2-user@ip-172-31-31-54 ~]$
Thanks for your effort!