[MacPorts] howto/MAMP modified

MacPorts noreply at macports.org
Wed Jun 17 00:51:39 PDT 2009


Changed page "howto/MAMP" by Dormilich at netscape.net from 84.183.60.194*
Page URL: <http://trac.macports.org/wiki/howto/MAMP>
Diff URL: <http://trac.macports.org/wiki/howto/MAMP?action=diff&version=32>
Revision 32
Comment: load shortcut pointed out by ryandesign

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 31)
+++ howto/MAMP (version: 32)
@@ -2,7 +2,7 @@
 
 = Getting Apache, MySQL, and PHP Running under MacPorts =
 
- * Audience: Users who don't like the default OS X installation
+ * Audience: Users who don’t like the default OS X installation
  * Requires: MacPorts
 
 == Introduction ==
@@ -17,7 +17,7 @@
 
 === Step 1: '''Turn off Apple's "Personal Web Sharing"''' ===
 
-If you haven't already done so, make sure you turn off Apple's "Personal Web Sharing" in the System Preferences so that the default Apache server is not running. While you can set things up so that both servers run on different ports (e.g., port 80 and port 8080), it's not worth the hassle of maintaining two web server daemons. Just use the latest Apache from MacPorts and be done with it. 
+If you haven’t already done so, make sure you turn off Apple’s "Personal Web Sharing" in the System Preferences so that the default Apache server is not running. While you can set things up so that both servers run on different ports (e.g., port 80 and port 8080), it’s not worth the hassle of maintaining two web server daemons. Just use the latest Apache from MacPorts and be done with it. 
 
 === Step 2: Install Apache ===
 
@@ -87,7 +87,7 @@
 }}}
 
 
-Restart Apache (`sudo /opt/local/apache2/bin/apachectl -k restart`) and verify that everything's running. You should now be able to go to http://localhost/manual/ to access the manual, and you should be able to access your personal user web site at http://localhost/~username/, where "username" is your login id.
+Restart Apache (`sudo /opt/local/apache2/bin/apachectl -k restart`) and verify that everything’s running. You should now be able to go to http://localhost/manual/ to access the manual, and you should be able to access your personal user web site at http://localhost/~username/, where "username" is your login id.
 
   '''''Note:''''' When upgrading your Apache installation, MacPorts will not overwrite or in any way alter your httpd.conf or any of the extra configuration files. You may still want to back up your configuration files from time to time, just to be safe. When upgrading to a newer version, you may also want to compare your configuration file to the current sample files, in case things have changed.
 
@@ -106,7 +106,7 @@
 sudo chown -R mysql:mysql /opt/local/var/log/mysql5/ 
 }}}
 
-  ''If that doesn't work try this:''
+  ''If that doesn’t work try this:''
   {{{
 sudo mysql_install_db5 
 sudo chown -R mysql:mysql /opt/local/var/db/mysql5/ 
@@ -119,19 +119,24 @@
 sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
 }}}
 
-and then verify that it's running
+alternatively you can use port’s load command
+{{{
+sudo port load mysql5-server
+}}}
+
+and then verify that it’s running
 
 {{{
 ps -ax | grep mysql
 }}}
 
-Set the MySQL `root` password (it's currently empty):
+Set the MySQL `root` password (it’s currently empty):
 
 {{{
 mysqladmin5 -u root -p password <new-password> 
 }}}
 
-where `<new-password>` is your new desired root password. You will be prompted for your existing password ("`Enter password:`"); since it's empty, just press Return.
+where `<new-password>` is your new desired root password. You will be prompted for your existing password ("`Enter password:`"); since it’s empty, just press Return.
 
 Test everything by logging in to the server.
 
@@ -139,7 +144,7 @@
 mysql5 -u root -p
 }}}
 
-Once you're logged in, simply exit the session
+Once you’re logged in, simply exit the session
 
 {{{
 mysql> exit ;
@@ -166,7 +171,7 @@
 sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
 }}}
 
-Update Apache's `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:
+Update Apache’s `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:
 
 {{{
 DirectoryIndex index.html
@@ -235,7 +240,7 @@
 sudo port install phpmyadmin
 }}}
 
-Update Apache's `httpd.conf` file to find `phpmyadmin`. First add the following lines to the end of the file:
+Update Apache’s `httpd.conf` file to find `phpmyadmin`. First add the following lines to the end of the file:
 
 {{{
 # Local access to phpmyadmin installation

-------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