How to install Zencart V1.5.5f on linuxmint 18.03

To install Zencart V1.5.5f on linuxmint 18.03


Zen Cart is a free, user-friendly and open source shopping cart. It is based on php and using a MySQL database and HTML components. It used for small, medium and large businesses to create and manage their online stores for free.


Pre-requirements


Install LAMP (Apache, php7.1, mariadb-server)
In MariaDB (create database, user and give privileges to the user)


FOR PHP INSTALLATION

apt-get install php7.1 libapache2-mod-php7.1 php7.1-common php7.1-mbstring php7.1-xmlrpc php7.1-soap php7.1-gd php7.1-xml php7.1-intl php7.1-mysql php7.1-cli php7.1-mcrypt php7.1-ldap php7.1-zip php7.1-curl

Download the ZenCart package from the browser, using the following link: https://sourceforge.net/projects/zencart/?source=typ_redirect


After downloading extract the Downloaded package using unzip command

linuxhelp ~ # cd /home/user/Downloads/
linuxhelp Downloads # ls
zen-cart-v1.5.5f-12312017b.zip
linuxhelp Downloads # unzip zen-cart-v1.5.5f-12312017b.zip 
Archive:  zen-cart-v1.5.5f-12312017b.zip
   creating: zen-cart-v1.5.5f-12312017b/
   creating: zen-cart-v1.5.5f-12312017b/admin/
  inflating: zen-cart-v1.5.5f-12312017b/admin/.htaccess  
  inflating: zen-cart-v1.5.5f-12312017b/admin/admin_account.php  
  inflating: zen-cart-v1.5.5f-12312017b/admin/admin_activity.php  
  inflating: zen-cart-v1.5.5f-12312017b/admin/admin_page_registration.php  
  inflating: zen-cart-v1.5.5f-12312017b/admin/alert_page.php  
.
.
.
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_138.sql  
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_139.sql  
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_150.sql  
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_151.sql  
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_152.sql  
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_153.sql  
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_154.sql  
  inflating: zen-cart-v1.5.5f-12312017b/zc_install/sql/updates/mysql_upgrade_zencart_155.sql
linuxhelp Downloads # ls
zen-cart-v1.5.5f-12312017b  zen-cart-v1.5.5f-12312017b.zip

Rename the extracted directory

linuxhelp Downloads # mv zen-cart-v1.5.5f-12312017b zencart

Move the ZenCart directory into the /var/www/html directory

linuxhelp Downloads # mv zencart/ /var/www/html/

Go to /var/www/html directory

linuxhelp Downloads # cd /var/www/html/
linuxhelp html # ls
index.html  zencart

Change ownership and permission for the file

linuxhelp html # chown -R www-data:www-data zencart/   chmod -R 775 zencart/

Configure the virtual host for ZenCart. Create an empty file named zencart.conf

linuxhelp html # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim zencart.conf
[&hellip ]
< VirtualHost *:80> 
Servername   www.linuxhelp1.com
DocumentRoot " /var/www/html/zencart" 
< Directory " /var/www/html/zencart/" > 
AllowOverride All
order allow,deny
allow from all
< /Directory> 
< /VirtualHost>  
[&hellip ]            

Enable the ZenCart.conf file

linuxhelp sites-available # a2ensite zencart.conf 
Enabling site zencart.
To activate the new configuration, you need to run
service apache2 reload

Make an entry to the hosts file as follows

linuxhelp sites-available # vim /etc/hosts
< give your ip>      < give your domain name> 

Finally, restart your apache web server

linuxhelp sites-available # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://< ipaddress or domain name


After navigation to the URL, you will see the welcome page of Zencart CMS, from where you can begin the installation

Now configure the Zencart application as follows

Configure the system setup
snap6
Configure the Database setup as follows

Configure the admin account setup

After the configuration setup, you will see the following page

Just refresh the page to proceed further.

you may see the following warning screen to perform the post configuration setup. so follow the below steps.

linuxhelp sites-available # cd /var/www/html/zencart/
linuxhelp zencart # rm -rvf zc_install/
removed ' zc_install/ajaxGetProgressValues.php' 
removed ' zc_install/ajaxAdminSetup.php' 
removed ' zc_install/ajaxTestDBConnection.php' 
removed ' zc_install/ajaxValidateAdminCredentials.php' 
removed ' zc_install/ajaxTestSystemSetup.php' 
removed ' zc_install/ajaxLoadMainSql.php' 
removed ' zc_install/index.php' 
removed ' zc_install/includes/functions/general.php' 
.
.
.
removed ' zencart/logs/myDEBUG-1524223899-531035.log' 
removed ' zencart/logs/myDEBUG-1524223949-554433.log' 
removed ' zencart/logs/myDEBUG-1524223937-351943.log' 
removed directory ' zencart/logs' 
removed directory ' zencart/' 

After the post configuration, you can login using the admin account credentials

You need to assign a new password during a login

After the successful login, configure the initial setup wizard and update

you will see the admin dashboard of Zencart CMS as shown here.

with this, the method to install Zencart V1.5.5f on linuxmint 18.03 comes to an end.

Tag : Linux Mint
FAQ
Q
Is Zencart opensource?
A
Yes, Zencart is a free and opensource application.
Q
What is Zencart?
A
Zen Cart is a free, user-friendly and open source shopping cart. It is based on php and using a MySQL database and HTML components. It used for small, medium and large businesses to create and manage their online stores for free.
Q
How to install Zencart on Ubuntu?
A
To install Zencart on Ubuntu visit
https://www.linuxhelp.com/how-to-install-zencart-1-5-5-on-ubuntu-18-04/
Q
How to make a host file entry for Zencart?
A
To enable host entry for Zencart use the following method,
# /etc/hosts
Q
How to create Custom Error and access log for Zencart?
A
Make an entry in Zentcart's Virtual host file as follows,
Errorlog /var/log/linuxhelp/error_log
Customlog /var/log/linuxhelp/access_log