How to install Magento – 2.2.3 on Cent OS 7
How to install Magento 2.2.3 on CentOS 7
Magento is a powerful eCommerce platform written in PHP. It enables individuals to set up commerce and online stores in minutes and requires web and database servers. In this tutorial, we will cover the installation of Magento 2.2.3 on centos 7
Prerequisites
- Magento CMS requires a web server to functionally based on LAMP setup on your system and also with following required PHP 7.0 modules.
- For php installation
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w php70w-opcache
- Php modules
yum install php70w-bz2 php70w-calendar php70w-Core php70w-ctype php70w-curl php70w-date php70w-dom php70w-exif php70w-fileinfo php70w-filter php70w-ftp php70w-gd php70w-gettext php70w-gmp php70w-hash php70w-iconv
php70w-imap php70w-intl php70w-json php70w-ldap php70w-libxml php70w-mbstring php70w-mcrypt php70w-mysqli php70w-openssl php70w-pcntl php70w-pcre php70w-PDO php70w-pdo\_mysql php70w-pdo\_sqlite php70w-Phar php70w-posix
php70w-readline php70w-recode php70w-Reflection php70w-session php70w-shmop php70w-SimpleXML php70w-soap php70w-sockets php70w-SPL php70w-sqlite3 php70w-standard php70w-sysvmsg php70w-sysvsem php70w-sysvshm php70w-tidy
php70w-tokenizer php70w-wddx php70w-xml php70w-xmlreader php70w-xmlrpc php70w-xmlwriter php70w-xsl php70w-Zend php70w-OPcache php70w-zip php70w-zlib
Installation
Let' s first create a database for Magento and configure as follows
\[root@linuxhelp1 ~\]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with or g.
Your MariaDB connection id is 11
Server version: 10.1.25-MariaDB- Ubuntu 17.04
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type ' help ' or ' h' for help. Type ' c' to clear the current input statement.
MariaDB \[(none)\]> create database magento
Query OK, 1 row affected (0.00 sec)
MariaDB \[(none)\]> grant all privileges on magento.\* to ' magentouser' @' localhost' identified by ' 123'
Query OK, 0 rows affected (0.01 sec)
MariaDB \[(none)\]> flush privileges
Query OK, 0 rows affected (0.00 sec)
MariaDB \[(none)\]> exit
Bye
And then Download Magento from the following URL https://magento.com/tech-resources/download
After Downloading extract the package using the following command
\[root@linuxhelp1 ~\]# cd /home/user1/
\[root@linuxhelp1 user1\]# tar -xvzf magento-2-community-master.tar.gz
magento-2-community-master/
magento-2-community-master/.htaccess
magento-2-community-master/.htaccess.sample
magento-2-community-master/.php\_cs
magento-2-community-master/.php\_cs.dist
magento-2-community-master/.travis.yml
magento-2-community-master/.user.ini
magento-2-community-master/CHANGELOG.md
.
.
magento-2-community-master/vendor/zendframework/zend-view/src/Resolver/TemplatePathStack.php
magento-2-community-master/vendor/zendframework/zend-view/src/Strategy/
magento-2-community-master/vendor/zendframework/zend-view/src/Strategy/FeedStrategy.php
magento-2-community-master/vendor/zendframework/zend-view/src/Strategy/JsonStrategy.php
magento-2-community-master/vendor/zendframework/zend-view/src/Strategy/PhpRendererStrategy.php
magento-2-community-master/vendor/zendframework/zend-view/src/Stream.php
magento-2-community-master/vendor/zendframework/zend-view/src/Variables.php
magento-2-community-master/vendor/zendframework/zend-view/src/View.php
magento-2-community-master/vendor/zendframework/zend-view/src/ViewEvent.php
Now move the extracted file to the Apache root Directory
\[root@linuxhelp1 user1\]# mv magento-2-community-master /var/www/magento
Now, switch to the directory
\[root@linuxhelp1 user1\]# cd /var/www/
You have to change ownership and permission of the file
\[root@linuxhelp1 www\]# chown -R apache.apache magento
\[root@linuxhelp1 www\]# chmod -R 775 magento
After assigning permission, create the virtual host for Magento
\[root@linuxhelp1 www\]# vim /etc/httpd/conf.d/magento.conf
< VirtualHost \*:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/magento/
< Directory /var/www/magento/>
AllowOverride All
allow from all
< /Directory>
< /VirtualHost>
Finally, restart the apache service to make the changes effect
\[root@linuxhelp1 www\]# systemctl restart httpd
Now, you can proceed the further installation graphically from the browser by navigating to the following URL: http://ip-address or domain
First, you need to agree to the terms and condition and proceed to setup Magento
And then the installation begins with checking the essentials, once all requirements meet you can start the installation by clicking Next
And then you have to configure the database detail and click Next
Next, you need to do web configuration. once done click Next
And then you can customize your store from here using the following options. once done click Next
And then you have to create an admin account from the following options
Once all the configurations are done you can proceed to install using the following option
Once the installation is done you will see the following screen.
You can launch the Magento by logging in the following screen
Now after the successful login you will see the following screen.
With this, the method to Magento 2.2.3 on CentOS 7 comes to an end
Comments ( 0 )
No comments available