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

Magento2 installation on RHEL/Centos 7 with Php7.

Subscribing to the IUS Community Project Repository
Since PHP 7.x is not yet packaged in official repositories for the major distributions, we’ll have to rely on a third-party source. Several repositories offer PHP 7 RPM files. We’ll use the IUS repository.

IUS offers an installation script for subscribing to their repository and importing associated GPG keys. Make sure you’re in your home directory, and retrieve the script using curl:

Add rpm Package for mysql 5.7 server.

Step 1-:

Install Required Packages-:

To start and enable for startup MySql-Server

Use the below command to get temporary MySql root password.

Run the below command to reset the root password.

Use the password in grep command.
Output-:

Add a database for magento2 instance.

Step 2-:

Enable the apache to start up and restart the apache.

Setup the Firewall for the port 80 and 443.

Check the phpinfo version and enable modules.

Step 3-:

Now setup the Magento2 (M2) instance.

Install Magento2 dependencies via composer.

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

if prompt while composer install

Register on https://magento.com/
Login with your email and password.
Click on “My Account” > “Connect” tab > Secure Key
You will find the Public Key and Private key.
Add key using or regenerate and use in below
magento2_setup

or

To change the permission of current directory.

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

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

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

If you found error 500, please use /setup. For example.
http://< ip > /magento2/setup/
http://< localhost >/magento2/setup/

Step 4-:

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.

Share this Post

Leave a Reply

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