<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Zen Cart Archives - LinuxTuto</title>
	<atom:link href="https://www.linuxtuto.com/tag/zen-cart/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.linuxtuto.com/tag/zen-cart/</link>
	<description>Linux Sysadmin and DevOps blog</description>
	<lastBuildDate>Mon, 06 Feb 2023 20:51:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.linuxtuto.com/wp-content/uploads/2022/01/cropped-LT_faveicon-32x32.png</url>
	<title>Zen Cart Archives - LinuxTuto</title>
	<link>https://www.linuxtuto.com/tag/zen-cart/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">201456972</site>	<item>
		<title>How to Install Zen Cart on Ubuntu 22.04</title>
		<link>https://www.linuxtuto.com/how-to-install-zen-cart-on-ubuntu-22-04/</link>
					<comments>https://www.linuxtuto.com/how-to-install-zen-cart-on-ubuntu-22-04/#respond</comments>
		
		<dc:creator><![CDATA[LinuxTuto]]></dc:creator>
		<pubDate>Mon, 16 Jan 2023 14:00:03 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Zen Cart]]></category>
		<guid isPermaLink="false">https://www.linuxtuto.com/?p=1062</guid>

					<description><![CDATA[<p>Zen Cart is a free, open-source e-commerce application with wide community support. It is written in PHP and requires a MySQL database. In this tutorial,...</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-zen-cart-on-ubuntu-22-04/">How to Install Zen Cart on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Zen Cart is a free, open-source e-commerce application with wide community support. It is written in PHP and requires a MySQL database.</p>
<p>In this tutorial, we will show you how to install Zen Cart on Ubuntu 22.04 OS.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 1: Update Operating System</span></h2>
<p>Update your <strong>Ubuntu</strong> <strong>22.04</strong> operating system to the latest version with the following command:</p>
<pre><code>$ sudo apt update &amp;&amp; sudo apt upgrade -y</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 2: Install Apache webserver</span></h2>
<p>You can install it via <code>apt</code> package manager by executing the following command.</p>
<pre><code>$ sudo apt install apache2</code></pre>
<p>You can start the Apache service and configure it to run on startup by entering the following commands:</p>
<pre><code>$ sudo systemctl start apache2
$ sudo systemctl enable apache2</code></pre>
<p>Verify the status of the <code>Apache</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status apache2</code></pre>
<p>Output:</p>
<pre><code><span style="color: #00ff00;">●</span> apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: <span style="color: #00ff00;">active (running)</span>
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 47636 (apache2)
      Tasks: 55 (limit: 2200)
     Memory: 4.8M
        CPU: 126ms
     CGroup: /system.slice/apache2.service
             ├─47636 /usr/sbin/apache2 -k start
             ├─47638 /usr/sbin/apache2 -k start
             └─47639 /usr/sbin/apache2 -k start
</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 3: </span><span class="has-inline-color has-vivid-purple-color">Install PHP and PHP extensions for Zen Cart</span></h2>
<p>By default, Ubuntu 22.04 comes with PHP version 8.1. To install PHP and additional PHP modules to support Zen Cart, run the following command:</p>
<pre><code>$ sudo apt-get install php php-cli php-common libapache2-mod-php php-curl php-zip php-gd php-mysql php-xml php-mbstring php-json php-intl</code></pre>
<p>Verify if PHP is installed.</p>
<pre><code>php -v</code></pre>
<pre><code><strong>Output:</strong>
PHP 8.1.2-1ubuntu2.9 (cli) (built: Oct 19 2022 14:58:09) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.9, Copyright (c), by Zend Technologies
</code></pre>
<p>After installing all the packages, edit the php.ini file:</p>
<pre><code>$ sudo nano /etc/php/8.1/apache2/php.ini</code></pre>
<p>Change the following settings per your requirements:</p>
<pre><code>memory_limit = 512M
post_max_size = 128M
upload_max_filesize = 128M
date.timezone = America/Chicago</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code>$ sudo systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 4: Install MariaDB and create a database</span></h2>
<p>To install MariaDB run the following command:</p>
<pre><code>$ sudo apt install mariadb-server mariadb-client</code></pre>
<p>Verify the status of the <code>MariaDB</code> service using <code>systemctl status</code> command:</p>
<pre><code>$ sudo systemctl status mariadb</code></pre>
<p>Output:</p>
<pre><code><span style="color: #00ff00;">●</span> mariadb.service - MariaDB 10.6.11 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
     Active: <span style="color: #00ff00;">active (running)</span>
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
    Process: 59747 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
    Process: 59748 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
    Process: 59750 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] &amp;&amp; VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   &amp;&amp; &gt;
    Process: 59790 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
    Process: 59792 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
   Main PID: 59779 (mariadbd)
     Status: "Taking your SQL requests now..."
      Tasks: 9 (limit: 2200)
     Memory: 61.0M
        CPU: 415ms
     CGroup: /system.slice/mariadb.service
             └─59779 /usr/sbin/mariadbd

</code></pre>
<p>By default, MariaDB is not hardened. You can secure MariaDB using the <code class=" prettyprinted"><span class="pln">mysql_secure_installation</span></code> script.</p>
<pre><code>$ sudo mysql_secure_installation</code></pre>
<p>Configure it like this:</p>
<pre><code>- Set root password? [Y/n] <strong>Y</strong>
- Remove anonymous users? [Y/n] <strong>Y</strong>
- Disallow root login remotely? [Y/n] <strong>Y</strong>
- Remove test database and access to it? [Y/n] <strong>Y</strong>
- Reload privilege tables now? [Y/n] <strong>Y</strong></code></pre>
<p>Now run the command below to log in to the MariaDB shell.</p>
<pre><code>$ sudo mysql -u root -p</code></pre>
<p>Once you are logged in to your database server you need to create a database for the Zen Cart installation:</p>
<pre><code>MariaDB [(none)]&gt; CREATE DATABASE zencart;
MariaDB [(none)]&gt; CREATE USER 'zencart'@'localhost' IDENTIFIED BY 'Str0ngWedrf1';
MariaDB [(none)]&gt; GRANT ALL PRIVILEGES ON zencart. * TO 'zencart'@'localhost';
MariaDB [(none)]&gt; FLUSH PRIVILEGES;
MariaDB [(none)]&gt; exit;</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 5: Download Zen Cart</span></h2>
<p>The latest version of Zen Cart is available to <a href="https://github.com/zencart/zencart/releases">download from GitHub</a>. As of writing this tutorial, the latest version available is 1.5.8.</p>
<pre><code>$ sudo wget https://github.com/zencart/zencart/archive/refs/tags/v1.5.8.zip --no-check-certificate</code></pre>
<p>Then extract file into the folder <strong>/var/www/</strong> with the following command:</p>
<pre><code>$ sudo apt -y install unzip 
$ sudo unzip v1.5.8.zip -d /var/www/</code></pre>
<p>Rename the extracted directory:</p>
<pre><code>$ sudo mv /var/www/zencart-1.5.8 /var/www/zencart/</code></pre>
<p>Then enable permission for the Apache webserver user to access the files:</p>
<pre><code>$ sudo chown -R www-data:www-data /var/www/zencart/</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 6: Configure Apache for Zen Cart</span></h2>
<p>Run the commands below to create a new VirtualHost file called <kbd>zencart</kbd> in the <strong>/etc/apache2/sites-available/</strong> directory.</p>
<pre><code>$ sudo nano /etc/apache2/sites-available/zencart.conf</code></pre>
<p>Paste the content as shown below:</p>
<pre><code> &lt;VirtualHost *:80&gt;
    ServerAdmin admin@your-domain.com
    DocumentRoot /var/www/zencart/
    
    ServerName your-domain.com
    ServerAlias www.your-domain.com

    &lt;Directory /var/www/zencart/&gt; 
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    &lt;/Directory&gt; 

    ErrorLog /var/log/apache2/your-domain.com-error_log
    CustomLog /var/log/apache2/your-domain.com-access_log common

 &lt;/VirtualHost&gt;</code></pre>
<p>Remember to replace <strong><code>your-domain.com</code></strong> with the domain name of your server.</p>
<p>Save and exit the configuration file.</p>
<p>To enable this site run the command:</p>
<pre><code>$ sudo a2ensite zencart.conf</code></pre>
<p>To implement the changes, restart Apache webserver:</p>
<pre><code>$ sudo systemctl restart apache2</code></pre>
<h2><span class="has-inline-color has-vivid-purple-color">Step 7: Install free Let’s Encrypt SSL certificate</span></h2>
<p>First we need to install the Certbot client which is used <a href="https://www.linuxtuto.com/how-to-install-apache-with-lets-encrypt-on-ubuntu-22-04/">to create Let’s Encrypt certificates</a>:</p>
<pre><code>$ sudo apt install certbot python3-certbot-apache</code></pre>
<p>To get the SSL certificate using the Certbot, type the command given below:</p>
<pre><code>$ sudo certbot --apache -d your-domain.com -d www.your-domain.com</code></pre>
<p>If the SSL certificate is successfully obtained, certbot displays a message to show the configuration was successful:</p>
<pre><code>IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/your-domain.com.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/your-domain.com/privkey.pem
   Your cert will expire on 2023-04-02. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le</code></pre>
<p>Now, you have successfully installed SSL on your website.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Step 8: Access Zen Cart Web Interface</span></h2>
<p>Open your web browser and type the URL <strong><code>https://your-domain.com/zc_install/index.php</code></strong>. You should see the following page:</p>
<p><img fetchpriority="high" decoding="async" class="size-large wp-image-1067 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-900x314.jpg" alt="Zen Cart System Inspection" width="900" height="314" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-900x314.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-300x105.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-768x268.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-1536x536.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-1222x426.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-897x313.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection-684x239.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_inspection.jpg 1912w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Accept the license and click on the <strong>Continue</strong>.</p>
<p><img decoding="async" class="size-large wp-image-1069 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_setup-900x758.jpg" alt="Zen Cart System Setup" width="900" height="758" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_setup-900x758.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_setup-300x253.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_setup-768x647.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_setup-897x756.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_setup-684x576.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_system_setup.jpg 1135w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Provide your database information and click the checkbox next to the <strong>Load Demo Data</strong> option. Then click on the <strong>Continue</strong>.</p>
<p><img decoding="async" class="size-large wp-image-1070 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_database_setup-900x760.jpg" alt="Zen Cart Database Setup" width="900" height="760" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_database_setup-900x760.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_database_setup-300x253.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_database_setup-768x648.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_database_setup-897x757.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_database_setup-684x577.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_database_setup.jpg 1128w" sizes="(max-width: 900px) 100vw, 900px" /></p>
<p>Establish a username and email address for the admin of the Zen Cart backend and click <strong>Continue</strong>.</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-1072 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_admin_setup-900x686.jpg" alt="Zen Cart Admin Setup" width="900" height="686" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_admin_setup-900x686.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_admin_setup-300x229.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_admin_setup-768x586.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_admin_setup-897x684.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_admin_setup-684x522.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_admin_setup.jpg 1099w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Once the installation has been completed, you should see the following page:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-1074 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-900x462.jpg" alt="Zen Cart finished Installation" width="900" height="462" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-900x462.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-300x154.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-768x395.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-1536x789.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-1222x628.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-897x461.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation-684x351.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_finish_installation.jpg 1909w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Now, open your terminal and remove the installation directory with the following command:</p>
<pre><code># rm -rf /var/www/zencart/zc_install/</code></pre>
<p>Then if you click on the <strong>Your Storefront</strong> you should see your shop page:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-1075 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-900x455.jpg" alt="Your Storefront" width="900" height="455" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-900x455.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-300x152.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-768x388.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-1536x777.jpg 1536w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-1222x618.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-897x454.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront-684x346.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_storefront.jpg 1898w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Or if you click on the <strong>Your Admin Dashboard</strong> button you should see the login page:</p>
<p><img loading="lazy" decoding="async" class="size-large wp-image-1076 aligncenter" src="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page-900x509.jpg" alt="Login Page" width="900" height="509" srcset="https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page-900x509.jpg 900w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page-300x170.jpg 300w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page-768x434.jpg 768w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page-1222x691.jpg 1222w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page-897x507.jpg 897w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page-684x387.jpg 684w, https://www.linuxtuto.com/wp-content/uploads/2023/01/zencart_login_page.jpg 1359w" sizes="auto, (max-width: 900px) 100vw, 900px" /></p>
<p>Provide your admin username, password and click on the <strong>Submit</strong> button. You should see your administration panel.</p>
<h2><span class="has-inline-color has-vivid-purple-color">Comments and Conclusion</span></h2>
<p>Congratulations! You have successfully installed Zen Cart e-commerce platform. Thanks for using this tutorial for installing Zen Cart on your Ubuntu 22.04 OS.</p>
<p>For additional help or useful information, we recommend you to check the documentation at <a href="https://docs.zen-cart.com/" target="_blank" rel="noopener">the official Zen Cart website</a>.</p>
<p>The post <a href="https://www.linuxtuto.com/how-to-install-zen-cart-on-ubuntu-22-04/">How to Install Zen Cart on Ubuntu 22.04</a> appeared first on <a href="https://www.linuxtuto.com">LinuxTuto</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.linuxtuto.com/how-to-install-zen-cart-on-ubuntu-22-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1062</post-id>	</item>
	</channel>
</rss>
