Changes between Version 57 and Version 58 of howto/MAMP
- Timestamp:
- Nov 19, 2010, 7:54:56 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v57 v58 32 32 33 33 {{{ 34 sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist34 sudo port load apache2 35 35 }}} 36 36 … … 74 74 Restart Apache using `sudo /opt/local/apache2/bin/apachectl -k restart` to make this change take effect. You can then view your personal pages by accessing http://localhost/~username/, where "username" is your Mac OS X account's short name. 75 75 76 However, the purpose of launchd is to notice processes that stop without its knowledge, and to restart them. So if you use apachectl -k restart, launchd may notice apache "crashing" and restart it itself, confusing apachectl. Instead, you may want to use launchctl to unload apache2, then load it again. This will result in a short interruption of service.76 However, the purpose of launchd is to notice processes that stop without its knowledge, and to restart them. So if you use apachectl -k restart, launchd may notice apache "crashing" and restart it itself, confusing apachectl. Instead, you may want to use "port" to tell launchctl to unload apache2, then load it again. This will result in a short interruption of service. 77 77 78 78 This is done by using 79 79 80 80 {{{ 81 sudo launchctl unload -w /Library/LaunchDaemons/org.macports.apache2.plist81 sudo port unload apache2 82 82 }}} 83 83 … … 85 85 86 86 {{{ 87 sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist87 sudo port load apache2 88 88 }}} 89 89 … … 162 162 Activate your MySQL server installation so that it autostarts when you boot your machine: 163 163 164 {{{165 sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist166 }}}167 168 alternatively you can use port’s load command169 164 {{{ 170 165 sudo port load mysql5-server