I'm using macOS High Sierra (Version 10.13.3) and using build in apache server. I've tried to upgrade php version to 7.2 few month ago. Today I noticed I've multiple httpd.conf file. When I run:

# locate httpd.conf

Output is as bellow:


When I try to restart server using: # apachectl restart It's not work. I've to run # /usr/sbin/apachectl restart to restart the server.

I'm confused which is my original server. How do I detect which is my original server and how to remove all other files.


You can get the current working apache server by running any one of these command in terminal:

httpd -V or apachectl -V

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.