Friday 17 November 2017

Apache Webserver on Mac

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

Note: Details from Mac OS X El Capitan / Sierra

No comments:

Post a Comment

Basic Sling Model Exporter

/* Open a page which is having component /apps/project/components/page/page /content/project/en/jcr:content.model.json Don't miss...