Magento 2 Installation on Mac OS

While exploring ways to simplify the Magento 2 installation and shorten the time to a simple running store on local environment, I found myself in the middle of so many different blogs, articles, and guides. They all gave me bits and pieces of information to get one step closer to installing Magento 2 on my local environment.

This blog is intended to expose extreme simplicity of Magento 2 installation with basic information and I will continue to contribute similar simple instructions to help the community of developers.

Here are the easy steps to install Magento 2 on local server.

Required system check

* Apache 2.2 or better
* PHP 5.5x or 5.5x
* Mysql 5.6x

Download and install PHP & MySQL using MAMP

* Download MAMP
MAMP Installation
MAMP is the acronym of MAC OS X,the operating system; Apache, the web server; Mysql,the database management system; and PHP,Perl, or Python, all programming languages used for web development.
MAMP comes with multiple PHP versions and MySQL5.6. I selected the latest PHP version available, i.e. PHP7.0.11.

Download Magento 2 package

You can review installation information here.
Click on easy Installation (own server) and you will be redirected to Magento Developer Documentation. you will get two edition CE(community edition) and EE(Enterprise Edition)
I downloaded Magento CE (community edition) which is free. Once you select the download, you will be redirect to Download Page. On that page I picked — Full Release (ZIP with no sample data Magento ver 2.1.1 — Added Aug 30 2016 ).

You do have an option to pick the download with sample data, however, I found it significantly large in size and it also causes memory and timeout issues so to simplify the installation process, I selected download with no sample data. We can always install the sample data separately.

Create Magento folder under: Applications/MAMP/htdocs/magento
Extract the downloaded ZIP file under your MAMP installation in newly created magento folder.

Once the download and extraction is complete, now its time to run the MAMP server and go through the installation steps.

Start MAMP server

Installation of Magento 2

Once the MAMP server is running, go to http://localhost:8888/phpMyAdmin/?lang=en to create the database. 

Create database name magento.

Check to make sure localhost user has appropriate privileges.

Go to http://localhost:8888/magento/setup to start the installation.
Click on Next button.
* For Web Configuration, select appropriate admin URL. I went with /admin for simplicity but if you are managing multiple stores, it is recommended to use a unique URL for each admin consoles.
* Other option is Session Save parameter. I prefer saving it in the Database but default recommendation is to use the File System.
Once completed, click on next button.
Once you click Next, installer progress page will appear.
NOTE: If your installer gets stuck, setting below parameters in your php.ini will most likely solve the problem — 
php_value memory_limit 768M
php_value max_execution_time 18000
You will be redirect to completion page. Magento 2 successfully installed.
Please take a screenshot or save the information since it will be useful especially in case where you are running multiple installation/stores on your local environment.
Note: If Magento Admin URL does not work, please check to see if there is .htaccess file available under magento root directory. If not, create one.

THAT IS IT! Click on Your Store Address link to visit the default Luma theme.

And here is where we will configure and administer the details of your newly created store. http://localhost:8888/magento/admin 
As mentioned earlier, this URL may be different for you depending upon the value provided during the Web Configuration step.
Enter the Username and Password as configured in Admin Account section of the installation steps. Taa-daaa...