How to easily install Apache, MySQL and PHP in OS X

  • Work-from-home

yoursks

Always different.., Confirm
VIP
Jul 22, 2008
17,222
8,013
1,113
دعاؤں میں
sing MAMP, you can quickly and easily install Apache, PHP and MySQL on your Mac. Installing each package separately is totally possible, but MAMP offers a number of advantages vs. individual installations. MAMP will not alter or interfere with an existing version of Apache already running on your Mac. If Apache/MySQL/PHP are no longer needed, delete the MAMP folder and everything returns to its original status. Keep reading for a walk-through of the installation and initial setup.
    1. First things first, download MAMP. Open the .DMG file, review the license, and click theAgree button.

click to enlarge
    1. Now drag the MAMP folder to your Applications. Ignore the MAMP PRO folder (unless you want to purchase MAMP Pro – it does include some extra features, but it’s not free).


    1. Give MAMP a minute to install.

    1. Navigate to your Applications, select the MAMP folder, and double-click MAMP.app.


    1. The MAMP interface will launch, and Apache and MySQL will start.


    1. Your browser will open and load the MAMP dashboard (http://localhost:8888/MAMP/?language=English). This page includes all of the info on the default settings for your MySQL server, and allows you to quickly access the included tools (phpinfo, phpMyAdmin and SQLiteManager)


    1. Select phpMyAdmin to configure your MySQL databases.


    1. Your web server “home” folder (document root) can be found in the htdocs sub-folder of MAMP.


    1. Place your .html, .php etc files in htdocs, and they’ll be viewable at http://localhost:8888

    1. Return to the MAMP interface application, and click the Preferences… button. The first tab allows you to control how the servers are started/stopped, if the start page should load when MAMP is opened, and the location of that start page.

    1. The Ports tab allows you to change the ports for Apache and MySQL.

    1. The PHP tab allows you to specify which version of PHP you’d like to use, if Zend Optimizer is enabled/disabled, and which cache to use.

    1. Finally, the Apache tab allows you to change the default Document Root.
 
Top