How to Install X-Cart on CentOS 7.6
- 00:37 rpm -q centos-release
- 00:53 mysql -u root -p
- 02:03 wget https://github.com/xcart/xcart5/archive/master.zip
- 02:15 unzip master.zip
- 02:27 mv xcart5-master /var/www/xcart
- 02:39 chown -R apache:apache /var/www/xcart
- 02:56 chmod -R 755 /var/www/xcart
- 03:11 vim /etc/httpd/conf.d/xcart.conf
- 04:23 systemctl restart httpd
Installation of X-Cart on CentOS 7.6
X-Cart is an open source eCommerce platform that runs on PHP. X-Cart is known for its fast performance and ease of use. It contains a plethora of themes and plugins with the application, along with some built-in plugins to support some modules. This tutorial explains the installation of X-Cart on Centos 7.6
Requirements for X-cart:
Apache
MariaDB
PHP and its modules
php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-mcrypt
Installation procedure
Check the CentOS version by using the following command.
[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64
Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.
[root@linuxhelp ~]# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create database xcart;
Query OK, 1 row affected (0.04 sec)
MariaDB [(none)]> create user 'xuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.11 sec)
MariaDB [(none)]> grant all privileges on xcart.* to 'xuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> Ctrl-C -- exit!
Aborted
Once the database configuration is done, download the installation package of X-cart by using the wget command.
[root@linuxhelp ~]# wget https://github.com/xcart/xcart5/archive/master.zip
--2019-05-30 11:48:43-- https://github.com/xcart/xcart5/archive/master.zip
Resolving github.com (github.com)... 13.234.176.102
Connecting to github.com (github.com)|13.234.176.102|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/xcart/xcart5/zip/master [following]
--2019-05-30 11:48:44-- https://codeload.github.com/xcart/xcart5/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
[ <=> ] 59,855,785 437KB/s in 91s
2019-05-30 11:50:16 (642 KB/s) - ‘master.zip’ saved [59855785]
Once the download is completed extract the downloaded package using unzip command.
[root@linuxhelp ~]# unzip master.zip
Archive: master.zip
fb007a4ddb4fd7c50d8e584193db2819673859d3
creating: xcart5-master/
inflating: xcart5-master/.gitignore
inflating: xcart5-master/README
inflating: xcart5-master/README.rdoc
creating: xcart5-master/src/
inflating: xcart5-master/src/.htaccess
inflating: xcart5-master/src/CLOUDSEARCHTERMS.txt
creating: xcart5-master/src/Includes/
.
.
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/Profiler/ProfileTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/TemplateTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/TokenStreamTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/Twig/Tests/escapingTest.php
inflating: xcart5-master/src/vendor/twig/twig/test/bootstrap.php
inflating: xcart5-master/src/xc5
Move the X-cart directory to apache root directory.
[root@linuxhelp ~]# mv xcart5-master /var/www/xcart
Set the ownership and permission for X-cart by using the following command.
[root@linuxhelp ~]# chown -R apache:apache /var/www/xcart
[root@linuxhelp ~]# chmod -R 755 /var/www/xcart
Configure the virtualhost for accessing the X-cart.
[root@linuxhelp ~]# vim /etc/httpd/conf.d/xcart.conf
<Virtualhost *:80>
Servername www.linuxhelp1.com
Documentroot /var/www/xcart
<directory /var/www/xcart>
allowoverride all
allow from all
</directory>
</Virtualhost>
Restart the apache service by using the following command.
[root@linuxhelp ~]# systemctl restart httpd
Switch to your browser and enter the domain name.
Click to run the installation wizard
Accept the license agreement and click next.
Enter the required admin details and click next.
Enter the required database details and click next.

The installation is in progress.
The installation is now complete. To open the admin panel, click the Admin zone option.
Enter the required admin credentials and log in.
The admin dashboard of X-Cart appears on the screen.

With this, the method to install X-cart on Centos 7.6 comes to an end.
Comments ( 0 )
No comments available