Quick handy command and details for Apache Webserver on Mac.
Start Apache
sudo apachectl start
Stop Apache
sudo apachectl stop
Restart Apache
sudo apachectl restart
Configuration Test
sudp apachectl configtest
Apache Installation Location
/usr/libexec/apache2/
Apache Conf Location
/private/etc/apache2/
Default Doc location
/Library/Webserver/Documents/
Error File location
/private/var/log/apache2/
Host File location
/etc/hosts
You can also get some of these details by running following command
httpd -V
No comments:
Post a Comment
If you have any doubts or questions, please let us know.