How to install Apache, MySQL and PHP in OS X

Using MAMP, you can quickly and easily install Apache, PHP and MySQL on your Mac.

Ross McKillop

Network Administration - Using MAMP, you can quickly and easily install Apache, PHP and MySQL on your Mac. Each package can be installed separately, but MAMP has several advantages to fix these individual settings. Besides, MAMP will not change or interfere with the existing version of Apache running on the Mac operating system. If Apache / MySQL / PHP is not needed anymore, delete the MAMP directory and then everything will return to its original state. This article will guide you through the initial installation and installation process .

  1. The first thing you need to do here is download MAMP. Open the .DMG file, then review the registry and click the Agree button.

How to install Apache, MySQL and PHP in OS X Picture 1How to install Apache, MySQL and PHP in OS X Picture 1

  1. Drag the MAMP folder into Applications. Ignore the MAMP PRO folder (unless you want to buy the MAMP Pro version - it includes a number of extended years, but not for free).

How to install Apache, MySQL and PHP in OS X Picture 2How to install Apache, MySQL and PHP in OS X Picture 2

  1. Give MAMP about 1 minute to install

How to install Apache, MySQL and PHP in OS X Picture 3How to install Apache, MySQL and PHP in OS X Picture 3

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

How to install Apache, MySQL and PHP in OS X Picture 4How to install Apache, MySQL and PHP in OS X Picture 4

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

How to install Apache, MySQL and PHP in OS X Picture 5How to install Apache, MySQL and PHP in OS X Picture 5

  1. Your browser will open and load MAMP's display tables (http:/// localhost: 8888 / MAMP /? Language = English). This page contains all the information about the default settings for the MySQL server and gives you quick access to the tools contained within it (phpinfo, phpMyAdmin and SQLiteManager).

How to install Apache, MySQL and PHP in OS X Picture 6How to install Apache, MySQL and PHP in OS X Picture 6

  1. Select phpMyAdmin to configure MySQL database.

How to install Apache, MySQL and PHP in OS X Picture 7How to install Apache, MySQL and PHP in OS X Picture 7

  1. The 'root' directory of your web server (document root) can be found in the htdocs subdirectory of MAMP.

How to install Apache, MySQL and PHP in OS X Picture 8How to install Apache, MySQL and PHP in OS X Picture 8

  1. Put the .html, .php, . files in the htdocs directory, they will be available at http:/// localhost: 8888

How to install Apache, MySQL and PHP in OS X Picture 9How to install Apache, MySQL and PHP in OS X Picture 9

  1. Go back to the MAMP interface application, click the Preferences . button. The first tab will allow you to control how the servers are started / stopped, the start page will have to load when MAMP opens, and the location of the start page.

How to install Apache, MySQL and PHP in OS X Picture 10How to install Apache, MySQL and PHP in OS X Picture 10

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

How to install Apache, MySQL and PHP in OS X Picture 11How to install Apache, MySQL and PHP in OS X Picture 11

  1. The PHP tab lets you specify which version of PHP you like to use, whether or not Zend Optimizer is enabled and which cache to use.

How to install Apache, MySQL and PHP in OS X Picture 12How to install Apache, MySQL and PHP in OS X Picture 12

  1. Finally, the Apache tab will allow you to change the Document Root by default.

How to install Apache, MySQL and PHP in OS X Picture 13How to install Apache, MySQL and PHP in OS X Picture 13

4 ★ | 1 Vote