Changes between Version 5 and Version 6 of howto/Apache2
- Timestamp:
- Dec 30, 2014, 5:31:08 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/Apache2
v5 v6 16 16 Stop the web server from the command line: 17 17 {{{ 18 sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist18 $ sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 19 19 }}} 20 20 === Yosemite === … … 26 26 27 27 {{{ 28 sudo port install apache228 $ sudo port install apache2 29 29 }}} 30 30 … … 34 34 Verify any changes you have made to the config file: /opt/local/apache2/conf/httpd.conf 35 35 {{{ 36 /opt/local/apache2/bin/apachectl -t36 $ /opt/local/apache2/bin/apachectl -t 37 37 }}} 38 38 This will return either "Syntax OK" or a specific line by line error listing. … … 42 42 43 43 {{{ 44 sudo port load apache244 $ sudo port load apache2 45 45 }}} 46 46 If when you issue this command, you immediately receive the message: … … 50 50 After correcting any config errors and saving the updated config file, simply run: 51 51 {{{ 52 sudo port unload apache252 $ sudo port unload apache2 53 53 }}} 54 54 … … 56 56 57 57 {{{ 58 sudo port load apache258 $ sudo port load apache2 59 59 }}} 60 60 … … 69 69 70 70 {{{ 71 /opt/local/apache2/bin/apachectl -t72 sudo port unload apache273 sudo port load apache271 $ /opt/local/apache2/bin/apachectl -t 72 $ sudo port unload apache2 73 $ sudo port load apache2 74 74 }}} 75 75 In Apache documentation (including this page), you will see the use of "''apachectl -k restart''" described as the method to cause the config file to be re-read.