Last active
June 11, 2018 06:20
-
-
Save udaragangabadage/41c4aa5f81e696fc06ed97f8f0a98bcc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To start/stop apache server | |
$ sudo apachectl start $ sudo apachectl stop | |
//To Check apache version | |
$ httpd -v | |
//To open httpd.conf | |
$ sudo nano /etc/apache2/httpd.conf | |
$ sudo atom /etc/apache2/httpd.conf | |
$ sudo leafpad /etc/apache2/httpd.conf //on any fucking text editor | |
//And restart the apache server | |
$ sudo apachectl restart | |
DocumentRoot "/Library/WebServer/Documents" | |
<Directory "/Library/WebServer/Documents"> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment