HOW TO INSTALL ZEN CART ON CENTOS – 7.

DATE POSTED : 20 /01/2019

This topic will cover the step by step installation process of Zen Cart open source e-commerce platform in  CentOS Linux operating systems.

Zen Cart is an easy to manage and popular shopping CMS platform, written in PHP server-side programming language

It is Deployed on top of LAMP stack that is mainly used to create online stores for advertising products and merchandises in today’s business life style.

Requirements

  1. You should have a Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 7.
  2. This recommended below link will help you in Installing Lamp Setup and Open cart  https://blog.pheonixsolutions.com/how-to-install-and-configure-opencart-3-0-2-on-centos-7 

Step 1: Install System Pre-Requirements for Zen Cart

1. On the first step, log in to your server console and issue the following commands in order to install unzip and curl utilities in your system.

# yum install unzip zip curl    [On CentOS/RHEL] 

2.you should also make sure you install the following PHP extensions required by Zen Cart e-commerce application by issuing the following command.

------------------ On CentOS/RHEL ---------------- 
# yum install epel-release
# yum install php-curl php-xml php-gd php-mbstring

3 . After all required PHP modules and installed in your system, open default PHP configuration file specific to your Linux distribution and update the below PHP settings.

Issue the below command according to your distribution to open and edit PHP configuration file.

# nano /etc/php.ini                      [On CentOS/RHEL]

Search and replace the following PHP settings as shown in the below excerpt:
Visit the official PHP time zone list in order to find the correct timezone according to your server geographical location.

file_uploads = On 
allow_url_fopen = On
memory_limit = 64M
upload_max_file_size = 64M
date.timezone = Indian

4. Restart Apache service

# systemctl restart httpd      [On CentOS/RHEL] 

5. Zen Cart e-commerce platform needs a RDBMS database to store application data. To create a Zen Cartdatabase, log to MySQL server console and issue the below command to create Zen Cart database and the credentials needed to access the database.

Replace the database name, user and password variables with your own settings.

# mysql -u root -p
MariaDB [(none)]> create database zencart_shop;
MariaDB [(none)]> grant all privileges on zencart_shop.* to 'your_user'@'localhost' identified by 'your_password';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit

Step 2: Install Zen Cart in CentOS 7

6. In order to install Zen Cart e-commerce application, first download the latest Zen Cart zip archive file in your system by issuing the below command.

# wget https://sourceforge.net/projects/zencart/files/CURRENT%20-%20Zen%20Cart%201.5.x%20Series/zen-cart-v1.5.5e-03082017.zip 

7. After Zen Cart zip file download finishes, issue the following commands to extract the zip archive and copy the installation files to web server document root path.

# unzip zen-cart-v1.5.5e-03082017.zip
# cp -rf zen-cart-v1.5.5e-03082017/* /var/www/html/

8. Next, issue the following command to grant Apache HTTP server full write permission to Zen Cart installation files from server’s document root path.

# chown -R apache:apache /var/www/html/        [On CentOS/RHEL] 

9. Next, open a browser and navigate to your server IP address or domain name via HTTP protocol and hit in order to start the installation process of Zen Cart.

http://your_domain.tld/

Thank you! for using PHEONIX SOLUTIONS.

You find this tutorial helpful? Share with your friends to keep it alive. Be the first to comment, we value your suggestions. For further queries please comment below.

Leave a Reply