Changes between Version 57 and Version 58 of howto/MAMP


Ignore:
Timestamp:
Nov 19, 2010, 7:54:56 PM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

advocate "port load" / "port unload" in place of launchctl

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v57 v58  
    3232
    3333{{{
    34 sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
     34sudo port load apache2
    3535}}}
    3636
     
    7474Restart 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.
    7575
    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.
     76However, 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.
    7777
    7878This is done by using
    7979
    8080{{{
    81 sudo launchctl unload -w /Library/LaunchDaemons/org.macports.apache2.plist
     81sudo port unload apache2
    8282}}}
    8383
     
    8585
    8686{{{
    87 sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
     87sudo port load apache2
    8888}}}
    8989
     
    162162Activate your MySQL server installation so that it autostarts when you boot your machine:
    163163
    164 {{{
    165 sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
    166 }}}
    167 
    168 alternatively you can use port’s load command
    169164{{{
    170165sudo port load mysql5-server