How to install X-Cart on CentOS 7

To install X-Cart on CentOS 7

In our former article, we saw the installation procedure of X-Cart on CentOS 6.9. In this article, we will be briefed on the installation procedure of X-Cart on CentOS 7. 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.

Pre &ndash Requisite

- LAMP (Apache, PHP, MySQL)

- PHP modules (apt-get install php5.6 php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-intl php5.6-intl php5.6-cli php5.6-gd php5.6-curl php5.6-sqlite3)

Installation procedure

To proceed with the installation procedure, download the X-Cart package by running the wget command followed by the download link.

[root@linuxhelp html]# wget http://img.x-cart.com/software/a/7236d21e-fa62-4059-ae9b-2bd2a53b8feb/x-cart-5.3.3.4-gb.zip
--2017-11-01 03:35:15--  http://img.x-cart.com/software/a/7236d21e-fa62-4059-ae9b-2bd2a53b8feb/x-cart-5.3.3.4-gb.zip
Resolving img.x-cart.com (img.x-cart.com)... 104.20.86.242, 104.20.87.242, 2400:cb00:2048:1::6814:56f2, ...
Connecting to img.x-cart.com (img.x-cart.com)|104.20.86.242|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 78058539 (74M) [application/zip]
Saving to: ‘ x-cart-5.3.3.4-gb.zip’ 

100%[======================================> ] 7,80,58,539 1.11MB/s   in 68s    

2017-11-01 03:36:24 (1.09 MB/s) - ‘ x-cart-5.3.3.4-gb.zip’  saved [78058539/78058539]


Extract the downloaded zip file using unzip command.

[root@linuxhelp html]# unzip x-cart-5.3.3.4-gb.zip
Archive:  x-cart-5.3.3.4-gb.zip
   creating: xcart/
  inflating: xcart/cart.php          
   creating: xcart/vendor/
   creating: xcart/vendor/marcj/
   creating: xcart/vendor/marcj/topsort/
   creating: xcart/vendor/marcj/topsort/tests/
 extracting: xcart/vendor/marcj/topsort/tests/bootstrap.php  
   creating: xcart/vendor/marcj/topsort/tests/Tests/
  inflating: xcart/vendor/marcj/topsort/tests/Tests/GroupedSortTest.php  
  inflating: xcart/vendor/marcj/topsort/tests/Tests/TestCase.php  
  inflating: xcart/vendor/marcj/topsort/tests/Tests/SimpleSortTest.php  
.
.
.
inflating: xcart/lib/phpunsharpmask.php  
  inflating: xcart/lib/PEAR.php      
  inflating: xcart/classes/XLite/Module/XC/Concierge/config.yaml  

Provide the appropriate permission and ownership of file in HTML location.

[root@linuxhelp html]# chmod -R 775 /var/www/html/
[root@linuxhelp html]# chown -R apache.apache /var/www/html/

Create a virtual host configuration file named xcart.conf and enter the following content in the file. Save and exit the file.

[root@linuxhelp html]# vim /etc/httpd/conf.d/xcart.conf

< VirtualHost *:80> 
ServerAdmin admin@xcart.com
DocumentRoot /var/www/html/xcart/
ServerName xcart.org
ErrorLog /var/log/httpd/xcart.org-error_log
CustomLog /var/log/httpd/xcart.org-access_log common
< /VirtualHost> 

Provide entry in the hosts file. Save and exit the file.

[root@linuxhelp html]# vim /etc/hosts
< ipaddr>   xcart.org

Restart the Apache service.

[root@linuxhelp html]# systemctl restart httpd

Switch over to the browser and give the URL as xcart.org. The installation procedure of X-Cart appears on the screen. Begin the installation process.

Accept the license agreement and mark the I accept the terms and conditions options and click Next.


Enter the required admin details and click Next.

Enter the required database details and click Next.

The installation is in progress and now the user has to wait for sometime to finish the installation process.

The installation is now complete. The window displays the set of commands that will perform the secure file permissions. Copy the set of commands.

Open the terminal and execute the above copied commands.

[root@linuxhelp html]# chmod 755 /var/www/html/xcart/
[root@linuxhelp html]# chmod 755 /var/www/html/xcart/etc/
[root@linuxhelp html]# chmod 644 /var/www/html/xcart/etc/config.php

Switch over to the browser and open the admin panel by clicking the Administrator zone option.

Enter the required admin credentials and Log in.

The admin dashboard of X-Cart appears on the screen.

Thus we conclude the installation procedure of X-Cart on CentOS 7.

FAQ
Q
Do I need an already established site to use X‑Cart?.
A
No, you don’t. X‑Cart is a site builder. When you install X‑Cart you get a ready online store. All you need to do is to add your products, choose your payment methods and configure other settings according to your business purposes via a friendly interface of X‑Cart administrator back‑end
Q
What are the key features of X-cart?
A
Simple admin menu for entering Questions and Answers.



Fully responsive, works with any site design.



Link directly to an answer using an anchor tag.
Q
Why the need of X-Cart?
A
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, alo
Q
Wanna I know the installation of X-Cart on Ubuntu 18.04?
A
Please refer the link as follow "https://www.linuxhelpbkp.revyy.com/how-to-install-xcart-5-3-5-3-on-ubuntu-18-04/"
Q
What is the difference between X‑Cart editions?
A
The only difference between X‑Cart editions is in the number of eCommerce tools & integrations. You can see the detailed comparison here https://www.x-cart.com/software-pricing.html

Fully responsive, works with any site design.

Link directly to an answer using an anchor tag.

Smooth jQuery driven a