How to setup Magento 2 on Mac OsX 10.11

In this tutorial, I will explain you how to setup Magento 2 on Mac Osx 10.11 by the following steps:

Step 1: Required system

Step 2: Download and install PHP

Step 3: Download composer

 Step 4: Download Magento 2 Packages

Step 5: Install Magento 2

Required system

  • Apache 2.2 or better
  • PHP 5.5.x or 5.6.x
  • MySQL 5.6.x

Download and install PHP

You can use the following link to install PHP new version on Max OsX 10.11:

Then setup mcrypt lib:

Download composer

You can download it and verify the Composer installation lessons here

Download Magento 2 Packages

Releases page:

Install Magento 2

First, you have to unzip magento 2 package to the directory of the Apache web server. Then follow below mentioned steps:

  1. Install Magento via composer
  • Open the terminal and use the following commands:

composer config repositories.magento composer

composer require magento/sample-data:1.0.0-beta

composer update

  • Download sample data

composer config repositories.magento composer

composer require magento/sample-data:1.0.0-beta

  • Install sample data

<folder_path>/magento setup:upgrade

<folder_path>/magento sampledata:install <your Magento administrator user name>

  1. Install Magento via web interface

Release the Magento 2 URL configured in your web server. Example:

On the welcome page, tap the Agree and Setup button


Next page : tap “start readiness check”, the system will verify  your PHP version, permission …


After complete, you want to type database access data on the next step

Next Page: Set up web setting: administration setting, set HTTPS connection, Apache rewrites and encryption key..

On the next step, you require to organize time zone, currency and language. Don’t forget to choose the “Use Sample Data” option.

Then type administrator account data configuration

Tap next button then wait the installation process until successful

The final step: open the Magento administration then disable all caches

Analyze magento 2 frontend home page

Tips: Some issues when installing magento 2:

– Cannot install composer:

OpenSSL is old:

You can download home brew to fix this issue:

Or download and install manual:

Missing intl library:

Install PECL, PEAR. Then Enabling CUL:

– Can not choose database when install magento 2:

$HTTP_RAW_POST_DATA is deprecated from PHP 5.6 onwards and will be removed in PHP 7.0

Include new line on php.ini file: always_populate_raw_post_data = -1

Or use this line on magento .htaccess file:

php_value always_populate_raw_post_data -1


php_value memory_limit 768M

php_value max_execution_time 18000

I hope the above mentioned steps help you to install PHP and magento 2 on Mac OsX10.11.

Last Update: April 7, 2018  

March 21, 2018   229   Nandini R    Operations    
Total 0 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Leave a Reply

Your email address will not be published. Required fields are marked *