Changes between Version 73 and Version 74 of howto/MAMP
- Timestamp:
- Nov 10, 2014, 5:33:13 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v73 v74 3 3 [wiki:howto <- Back to the HOWTO section] 4 4 5 = Getting Apache, MySQL, and PHP Running under MacPorts = 6 7 * Audience: Users who don’t like the default OS X installation 8 * Requires: MacPorts 9 10 == Introduction == 11 12 These instructions are written for the following versions: 5 These installation instructions are written for the following versions: 13 6 14 7 * Apache 2.2.* … … 16 9 * PHP 5.4.* 17 10 18 == Installation == 19 20 === Step 1: '''Turn off Apple's "Personal Web Sharing"''' === #pws 11 = Step 1: '''Turn off Apple's "Personal Web Sharing"''' = #pws 21 12 22 13 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. … … 27 18 }}} 28 19 29 = == Step 2: Install Apache === #apache20 = Step 2: Install Apache = #apache 30 21 31 22 {{{ … … 59 50 60 51 61 == == User directories ==== #userdir52 == User directories == #userdir 62 53 63 54 If you would like to be able to access web pages in the Sites directory of your home directory, edit `/opt/local/apache2/conf/httpd.conf` and locate the following line: … … 109 100 to start it again. 110 101 111 == == Local Apache manual ==== #manual102 == Local Apache manual == #manual 112 103 113 104 The [http://httpd.apache.org/docs/2.2/ Apache manual] is available on the Apache web site. If you would like to be able to access a copy of this manual on your web server, edit `/opt/local/apache2/conf/httpd.conf` and uncomment the following line: … … 125 116 Restart 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/. 126 117 127 == == Secure Sockets (https) ==== #ssl118 == Secure Sockets (https) == #ssl 128 119 129 120 This works for a development system (not recommended for production!). … … 155 146 156 147 157 = == Step 3: Install MySQL === #mysql148 = Step 3: Install MySQL = #mysql 158 149 159 150 If you merely want to access a MySQL server running on another computer, skip to step 4. If you want to run a MySQL server on this computer, install MySQL like this: … … 236 227 237 228 238 == == Optional database upgrade ==== #mysql_upgrade229 == Optional database upgrade == #mysql_upgrade 239 230 240 231 If the database exists from a previous installation, you may need to upgrade. … … 249 240 250 241 251 == == Optional security configuration ==== #mysql_security242 == Optional security configuration == #mysql_security 252 243 253 244 There is an interactive program to secure a MySQL installation. … … 285 276 286 277 287 = == Step 4: Install PHP === #php278 = Step 4: Install PHP = #php 288 279 289 280 {{{ … … 404 395 As a last check, reboot and verify that everything has autostarted and is running (i.e., repeat the above tests). 405 396 406 = == Step 5: Install phpMyAdmin (optional) === #phpmyadmin397 = Step 5: Install phpMyAdmin (optional) = #phpmyadmin 407 398 408 399 Use MacPorts to install the latest version of `phpMyAdmin`. … … 466 457 467 458 468 == == Optional pmadb ==== #phpMyAdmin_pmadb459 == Optional pmadb == #phpMyAdmin_pmadb 469 460 470 461 For additional features provided by pmadb (http://wiki.phpmyadmin.net/pma/pmadb), run