install Magento on CentOS

How to install Magento 2 in CentOS – Part 03

In the 3rd part, we’ll begin with configuring the php.ini file to install Magento on CentOS. Also we’ll icrease our PHP memory limit and time zone. Next continue by editing Apache and enabling mod_rewrite.

However, our hosting provides both SSD cloud hosting & servers. Both pro & plus hosting plans include premium services such as Aspiration CDN, Web development & transfer support. Our basic hosting begins for just $9.899 per month. Next enjoy our dedicated cloud 4GB server for only $149 per month only. Also enjoy different Aspiration rewards on regular basis. Here see our special plans & contact us for further information & support.

Install Magento on CentOS – Config php.ini

By using php.ini we can easily increase default PHP memory limit. Later on we’ll setup our desired time zone. Now under the following path find the php.ini file. Next open the file to edit the memory limit & time zone.

sudo nano /etc/php.ini

Here find the following lines and configure as per your need.

memory_limit = 500M
date.timezone = Asia/Dacca

Now click Save to store the latest configuration.

Install Magento on CentOS – Config Apache

After php.ini file configuration, we’ll focus is on Apache. Because we need to use mod_rewrite. So, we have to configure it in Apache. Here use the following path to find httpd.conf file.

/etc/httpd/conf/httpd.conf

Later navigate in httpd.conf file using following path:

sudo nano /etc/httpd/conf/httpd.conf

Now by navigating through file and find the line contains conf.modules.d/*.conf. Just include the following right under the line mentioned earlier.

LoadModule rewrite_module modules/mod_rewrite.so

Simply edit the value from AllowOverride None to AllowOverride All.

AllowOverride All

So Save the configuration and restart the Apache server. Hence, use the following commands:

sudo systemctl restart httpd

Further we’ll learn to create a Data Base for Mage. Later we’ll config the database for installing Mage in to CentOS.

Now reading Part 03 | Part 01 | Part 02 | Part 04 | Part 05