[MacPorts] howto/MAMP modified

MacPorts noreply at macports.org
Fri Nov 19 11:54:57 PST 2010


Changed page "howto/MAMP" by ryandesign at macports.org from 70.253.70.62*
Page URL: <https://trac.macports.org/wiki/howto/MAMP>
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=58>
Revision 58
Comment: advocate "port load" / "port unload" in place of launchctl

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 57)
+++ howto/MAMP (version: 58)
@@ -31,7 +31,7 @@
 Activate your Apache installation so that it starts now and every time you boot your machine: 
 
 {{{
-sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
+sudo port load apache2
 }}}
 
 To verify Apache is now running, point your browser to http://localhost/ (you may need to reload the page). You should see a page that says "It works!"
@@ -73,18 +73,18 @@
 
 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.
 
-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.
+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.
 
 This is done by using 
 
 {{{
-sudo launchctl unload -w /Library/LaunchDaemons/org.macports.apache2.plist
+sudo port unload apache2
 }}}
 
 to stop apache and then using
 
 {{{
-sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
+sudo port load apache2
 }}}
 
 to start it again.
@@ -161,11 +161,6 @@
 
 Activate your MySQL server installation so that it autostarts when you boot your machine:
 
-{{{
-sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
-}}}
-
-alternatively you can use port’s load command
 {{{
 sudo port load mysql5-server
 }}}

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on howto/MAMP. If it was not you, please
report to .


More information about the macports-changes mailing list