Installing Magento on CentOS
Magento is an open-source e-commerce platform. It offers a flexible shopping cart system and lets you control how your online shop looks and behaves. It also comes with search engine optimization features and catalog management tools.
Step 1: Install your web server
First we need a LAMP stack. You can set one up with a one-click LAMP app or by following a LAMP installation guide.
Step 2: Configure your web server
Assuming Apache is installed correctly, open /etc/httpd/conf.d/magento.conf in your text editor:
nano /etc/httpd/conf.d/magento.conf
Add the following to the file:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName yourmagentowebsite.com
DocumentRoot /var/www/yourmagentowebsite.com
</VirtualHost>
Save and close the file, then create the site directory:
mkdir /var/www/yourmagentowebsite.com
Now install the PHP packages Magento needs:
yum install php-mcrypt php-curl php-gd curl-devel php-intl php-xsl
When that’s done, restart Apache:
service httpd restart
Step 3: Install Magento
Download the Magento files from the official Magento website, choosing the tar.gz archive.
Using a free SFTP client such as FileZilla, connect to your server and upload the Magento archive to /var/www/yourmagentowebsite.com. Then connect over SSH and extract it:
cd /var/www/yourmagentowebsite.com
tar -xvf Magento-CE-xxxxx.tar.gz
Now that the files are in place, set up MySQL. To create a database, run:
mysql -uroot -pyourpasswordgoeshere
create database magento;
exit
Next, open your web browser and go to your server’s IP address. Fill in the configuration page with your database details to finish the installation.
Your Magento server is ready. You can now add products, payment gateways and more.
Thanks for following this Magento installation guide from Mizbandade.

