How to install X-Cart on CentOS 6.9

To install X-Cart on CentOS 6.9

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

[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 package by running the 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/Less/Less.php  
  inflating: xcart/lib/Less/Cache.php  
  inflating: xcart/lib/phpunsharpmask.php  
  inflating: xcart/lib/PEAR.php      
  inflating: xcart/classes/XLite/Module/XC/Concierge/config.yaml  

Provide the permission and ownership of extracted file in HTML location by executing the following commands.

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

Create a virtual host configuration file named xcart.conf and enter the following contents 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 and save the file.

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

Restart the Apache service.

[root@linuxhelp html]# service httpd restart

Stopping httpd:                                             [  OK  ]
Starting httpd:                                             [  OK  ] 

Switch over to the browser and enter the URL as xcart.org. The installer page of X-Cart appears on the screen. Select Click here option to start the installation procedure.

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 6.9.

FAQ
Q
Can you instal X‑Cart for me?
A
Yes, sure. Read more about our installation service. Also, you can go with a hosted X‑Cart option. We install the store for you and you don’t need to take care about any server related questions.
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
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
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
where to download source file ?
A
Download it from here, https://www.x-cart.com/download.html