Changes between Version 31 and Version 32 of howto/MAMP


Ignore:
Timestamp:
Jun 17, 2009, 7:51:31 AM (15 years ago)
Author:
Dormilich@…
Comment:

load shortcut pointed out by ryandesign

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v31 v32  
    33= Getting Apache, MySQL, and PHP Running under MacPorts =
    44
    5  * Audience: Users who don't like the default OS X installation
     5 * Audience: Users who dont like the default OS X installation
    66 * Requires: MacPorts
    77
     
    1818=== Step 1: '''Turn off Apple's "Personal Web Sharing"''' ===
    1919
    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.
     20If 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.
    2121
    2222=== Step 2: Install Apache ===
     
    8888
    8989
    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.
     90Restart Apache (`sudo /opt/local/apache2/bin/apachectl -k restart`) and verify that everythings 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.
    9191
    9292  '''''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.
     
    107107}}}
    108108
    109   ''If that doesn't work try this:''
     109  ''If that doesnt work try this:''
    110110  {{{
    111111sudo mysql_install_db5
     
    120120}}}
    121121
    122 and then verify that it's running
     122alternatively you can use port’s load command
     123{{{
     124sudo port load mysql5-server
     125}}}
     126
     127and then verify that it’s running
    123128
    124129{{{
     
    126131}}}
    127132
    128 Set the MySQL `root` password (it's currently empty):
     133Set the MySQL `root` password (its currently empty):
    129134
    130135{{{
     
    132137}}}
    133138
    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.
     139where `<new-password>` is your new desired root password. You will be prompted for your existing password ("`Enter password:`"); since its empty, just press Return.
    135140
    136141Test everything by logging in to the server.
     
    140145}}}
    141146
    142 Once you're logged in, simply exit the session
     147Once youre logged in, simply exit the session
    143148
    144149{{{
     
    167172}}}
    168173
    169 Update Apache's `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:
     174Update Apaches `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:
    170175
    171176{{{
     
    236241}}}
    237242
    238 Update Apache's `httpd.conf` file to find `phpmyadmin`. First add the following lines to the end of the file:
     243Update Apaches `httpd.conf` file to find `phpmyadmin`. First add the following lines to the end of the file:
    239244
    240245{{{