admin/ April 9, 2016/ Linux, Magento2/ 0 comments

How to install Magento2 (M2) on centos7/REHL/Fedora ?

There are few easy steps to install Magento 2(M2) on Centos Distro.

Step 1-:
First of all we need to add few EPEL repositories for the php5.6, mysql-server5.6, and phpmyadmin.

Step 2-:

Install Require packages like apache, php5.6, mysql-server, phpmyadmin.

To allow the phpmyadmin in apache 2.4 add the line

Require all granted

To add the apache application on start up

Restart the apache server

Step 3-:
Set the mysql root password and allow firewall to access of port 80 and 443.

Allow port 80 and 443 in iptables public zone

Then remember to reload the firewall for changes to take effect.

Step 4-:
Git clone Magento2 (M2) source code and Install dependencies via Composer.

if composer is not installed.
(use the below command to install composer)

To change the required ownership and permissions.

Edit .htaccess file of main folder and set RewriteBase with your application directory name.

Step 5-:

Follow the Magento Installer Steps.
Your Magento2 Setup is ready.

http://< ip > /magento2/setup/
http://< localhost >/magento2/setup/

Schedule Magento2 Cronjobs

Finally schedule the backgound cronjobs for your magento2 installation. These cronjobs does some activities like, re-indexing, Newsletters, Update of currency rates, sending automatic emails and generating sitemaps etc. To schedule these jobs edit crontab file

and add below cronjobs at the end of file and save it.

Visit to phpmyadmin
http://localhost/phpmyadmin/

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.