Changes between Version 56 and Version 57 of howto/MAMP


Ignore:
Timestamp:
Nov 19, 2010, 5:08:59 AM (14 years ago)
Author:
samii@…
Comment:

Added alternate procedure to stop and start apache2

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v56 v57  
    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
     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 launchctl to unload apache2, then load it again. This will result in a short interruption of service.
     77
     78This is done by using
     79
     80{{{
     81sudo launchctl unload -w /Library/LaunchDaemons/org.macports.apache2.plist
     82}}}
     83
     84to stop apache and then using
     85
     86{{{
     87sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
     88}}}
     89
     90to start it again.
     91
    7692==== Local Apache manual ==== #manual
    7793
     
    89105
    90106Restart Apache using `sudo /opt/local/apache2/bin/apachectl -k restart` to make this change take effect. You can then view the manual by accessing http://localhost/manual/.
    91 
    92107
    93108==== Secure Sockets (https) ==== #ssl