Changes between Version 31 and Version 32 of howto/MAMP
- Timestamp:
- Jun 17, 2009, 7:51:31 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v31 v32 3 3 = Getting Apache, MySQL, and PHP Running under MacPorts = 4 4 5 * Audience: Users who don 't like the default OS X installation5 * Audience: Users who don’t like the default OS X installation 6 6 * Requires: MacPorts 7 7 … … 18 18 === Step 1: '''Turn off Apple's "Personal Web Sharing"''' === 19 19 20 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.20 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. 21 21 22 22 === Step 2: Install Apache === … … 88 88 89 89 90 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.90 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. 91 91 92 92 '''''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. … … 107 107 }}} 108 108 109 ''If that doesn 't work try this:''109 ''If that doesn’t work try this:'' 110 110 {{{ 111 111 sudo mysql_install_db5 … … 120 120 }}} 121 121 122 and then verify that it's running 122 alternatively you can use port’s load command 123 {{{ 124 sudo port load mysql5-server 125 }}} 126 127 and then verify that it’s running 123 128 124 129 {{{ … … 126 131 }}} 127 132 128 Set the MySQL `root` password (it 's currently empty):133 Set the MySQL `root` password (it’s currently empty): 129 134 130 135 {{{ … … 132 137 }}} 133 138 134 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.139 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. 135 140 136 141 Test everything by logging in to the server. … … 140 145 }}} 141 146 142 Once you 're logged in, simply exit the session147 Once you’re logged in, simply exit the session 143 148 144 149 {{{ … … 167 172 }}} 168 173 169 Update Apache 's `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:174 Update Apache’s `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for: 170 175 171 176 {{{ … … 236 241 }}} 237 242 238 Update Apache 's `httpd.conf` file to find `phpmyadmin`. First add the following lines to the end of the file:243 Update Apache’s `httpd.conf` file to find `phpmyadmin`. First add the following lines to the end of the file: 239 244 240 245 {{{