[core:error] [pid 24658] (13)Permission denied: AH00099: could not create /usr/local/var/run/httpd/httpd.pid

I was facing problems starting httpd on mac using brew. Took me few minutes to figure out what was the actual problem. I thought I will share if you are facing same issue as well.

Starting httpd was fine.

brew services start httpd

..but the httpd error log was showing errors.

tail -f /usr/local/var/log/httpd/error_log

Errors

  1. [Sat Apr 03 16:29:44.966179 2021] [core:error] [pid 24658] (13)Permission denied: AH00099: could not create /usr/local/var/run/httpd/httpd.pid

Simple solution was to delete this httpd.pid file.

rm /usr/local/var/run/httpd/httpd.pid

Topic

Syndications

Ravi Sagar Newsletter

Honestly I hardly send out mails but I guess there is no harm in at least having a newsletter. I will only send newsletter when I have something important to share or an update. People are busy and no one has time to read emails these days. If you really like my content then I guess you will remember my site and come back for more.

Want to contact me?