{"id":2497,"date":"2021-10-27T20:31:11","date_gmt":"2021-10-27T19:31:11","guid":{"rendered":"https:\/\/www.sebae.net\/blog\/?p=2497"},"modified":"2021-10-27T20:53:49","modified_gmt":"2021-10-27T19:53:49","slug":"how-to-install-opencart-on-debian-11","status":"publish","type":"post","link":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/","title":{"rendered":"How To Install OpenCart On Debian 11"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A lot of people dream about running their own store, or may be they already have a store but want to expand on that by offering their products online.  Having the ability to offer your products to the world is what most companies are doing today, so if you are thinking of launching an online store, then OpenCart is one of the most used eCommerce platforms available to make this dream a reality.  Follow this tutorial on How to install OpenCart on Debian.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>It always seems impossible until its done.<br><\/p><cite>Nelson Mandela<\/cite><\/blockquote>\n\n\n\n<div class=\"cnvs-block-toc cnvs-block-toc-1634680436164\" >\n\t<\/div>\n\n\n\n<h2 id=\"requirements\" class=\"wp-block-heading\">Requirements<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>You will need a Virtual Private Server from a reliable provider like <a href=\"https:\/\/www.sebae.net\/vps-hosting\">Sebae<\/a><\/li><li>Your OS should be the latest Debian release, currently 11<\/li><li>You will need root access to the server<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">We always advise keeping to the latest Debian release, this will also ensure your servers are secure as possible.  Running an online store also means you will be taking customer information such as names and addresses, it is therefore your responsibility to ensure the data is kept safe. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can follow our tutorial on how to keep <a href=\"http:\/\/www.sebae.net\/blog\/how-to-configure-automatic-updates-on-debian\/\">Debian automatically updated<\/a>.<\/p>\n\n\n\n<h2 id=\"before-you-begin\" class=\"wp-block-heading\">Before You Begin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Login to your VPS as root, and get the OS up to date.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update &amp;&amp; apt upgrade<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">let the process run, once finished Debian should be ready.<\/p>\n\n\n\n<h2 id=\"step-1-install-apache-for-opencart-on-debian\" class=\"wp-block-heading\">Step 1: Install Apache for OpenCart on Debian<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">First of all, we need to download and install the Apache Web Server, this will be serving the OpenCart web pages to you and your customers.<\/p>\n\n\n\n<pre id=\"block-94baf106-4146-44dd-8b13-64f56415ba46\" class=\"wp-block-code\"><code>apt install apache2 apache2-utils<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">During the install process, apt will prompt to continue, if you are happy please enter &#8216;<strong>Y<\/strong>&#8216;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once complete, lets verify Apache is running with the following command;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status apache2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output should be similar as below<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@debtraining:~# systemctl status apache2\n* apache2.service - The Apache HTTP Server\n   Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\n   Active: active (running) since Tue 2021-10-26 20:47:21 UTC; 42s ago\n     Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\n Main PID: 12485 (apache2)\n    Tasks: 55 (limit: 38054)\n   Memory: 4.9M\n      CPU: 48ms\n   CGroup: \/system.slice\/apache2.service\n           |-12485 \/usr\/sbin\/apache2 -k start\n           |-12486 \/usr\/sbin\/apache2 -k start\n           `-12487 \/usr\/sbin\/apache2 -k start\n\nOct 26 20:47:21 debtraining systemd&#91;1]: Starting The Apache HTTP Server...\nOct 26 20:47:21 debtraining systemd&#91;1]: Started The Apache HTTP Server.\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also verfiy Apache is accessible by entering the URL of your server like this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;IP_Server_Address<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"807\" height=\"630\" src=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache.png\" alt=\"install-debian-apache\" class=\"wp-image-2522\" srcset=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache.png 807w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache-300x234.png 300w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache-768x600.png 768w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache-380x297.png 380w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache-550x429.png 550w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache-800x625.png 800w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache-760x593.png 760w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-debian-apache-600x468.png 600w\" sizes=\"auto, (max-width: 807px) 100vw, 807px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If everything is looking like the above then Apache is now installed and running.<\/p>\n\n\n\n<h2 id=\"step-2-install-php-extensions-for-opencart-on-debian\" class=\"wp-block-heading\">Step 2: Install PHP &amp; Extensions for OpenCart on Debian<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now we have Apache up and running, we need to install PHP &amp; the extensions needed to run OpenCart on Debian.  To do this run the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get install php-common php-cli php-fpm php-opcache php-gd php-mysql php-curl php-intl php-xsl php-mbstring php-zip php-bcmath php-soap unzip libapache2-mod-php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once the installer has finished downloading and installing PHP, you may see the following<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"298\" src=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-php-fpm.png\" alt=\"install-opencart-debian-php-fpm\" class=\"wp-image-2501\" srcset=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-php-fpm.png 670w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-php-fpm-300x133.png 300w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-php-fpm-380x169.png 380w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-php-fpm-550x245.png 550w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-php-fpm-600x267.png 600w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As the message suggests, we need to run <strong>a2enconf php7.4-fpm<\/strong> to enable this extension<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>a2enconf php7.4-fpm<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then lets restart Apache to load the new config<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl reload apache2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now, using a text editor, lets edit the php.ini file to support OpenCart.  The defaults will not be suitable and will cause errors.  To do this run this command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/php\/7.4\/fpm\/php.ini<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Find the following lines and change them to match as follows<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>max_execution_time = 300\nMmemory_limit = 256\nupload_max_filesize = 200M \nopcache.save_comments=1  \ndate.timezone = Europe\/London<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once complete, save the file and exit.<\/p>\n\n\n\n<h2 id=\"step-3-installing-mariadb-for-opencart-on-debian\" class=\"wp-block-heading\">Step 3: Installing MariaDB for OpenCart on Debian<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now we have Apache running with PHP, the next step is to install the database on MariaDB that will run OpenCart.  MariaDB is an easy to use database engine and most of all, its free to use.  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To install MariaDB run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install mariadb-server mariadb-client<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can check MariaDB is running by running the following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl status mariadb<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"368\" src=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb.png\" alt=\"install-opencart-debian-mariadb\" class=\"wp-image-2504\" srcset=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb.png 835w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb-300x132.png 300w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb-768x338.png 768w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb-380x167.png 380w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb-550x242.png 550w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb-800x353.png 800w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb-760x335.png 760w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-mariadb-600x264.png 600w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now we need to secure the MariaDB installation.  To do this run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql_secure_installation<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You will be asked a series of questions, our recommendation is to set a complex password, remove the test database and the anonymous users.  We also stronly advise disallowing root remote login.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have completed securing MariaDB, its now time to create the database used by OpenCart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Login to MariaDB as root by issuing the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now create a new database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE opencartdatabase;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now we have to create a new user which will be used to access the database by OpenCart, then we need to grant access to this user.  To do this run the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE USER 'opencart'@'localhost' IDENTIFIED BY 'password';\nGRANT ALL PRIVILEGES ON opencartdatabase . * TO 'opencart'@'localhost';<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The first command will create a new user called opencart with a password (<strong>you must change password to your own strong password<\/strong>). <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The second command will then grant all privileges to the opencartdatabase for the user opencart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next type the following to exit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>exit;<\/code><\/pre>\n\n\n\n<h2 id=\"step-3-download-and-install-opencart\" class=\"wp-block-heading\">Step 3: Download And Install OpenCart <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now we have MariaDB and Apache set up, we can now download OpenCart and extract the contents to a folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To download OpenCart, run the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\nwget https:\/\/github.com\/opencart\/opencart\/releases\/download\/3.0.3.8\/opencart-3.0.3.8.zip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now lets extract the contents of the file by running the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>unzip opencart-3.0.3.8.zip<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now lets move the new folder to the Apache webroot directory by running the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mv upload \/var\/www\/html\/opencart<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next we need to copy the sample config files for OpenCart so that OpenCart can read them, to do this run the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp \/var\/www\/html\/opencart\/config-dist.php \/var\/www\/html\/opencart\/config.php\ncp \/var\/www\/html\/opencart\/admin\/config-dist.php \/var\/www\/html\/opencart\/admin\/config.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Next lets allow Apache access to the files:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chown -R www-data:www-data \/var\/www\/html\/opencart\/\nchmod -R 775 \/var\/www\/html\/opencart\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now we can finally load the OpenCart URL in a browser and finish off the configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;yourserverIP\/opencart\/install\/index.php<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should now be presented with the installer screen which will allow to us to complete the OpenCart on Debian installation<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-1024x469.png\" alt=\"install-opencart-debian-installer\" class=\"wp-image-2510\" srcset=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-1024x469.png 1024w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-300x138.png 300w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-768x352.png 768w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-380x174.png 380w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-550x252.png 550w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-800x367.png 800w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-1160x532.png 1160w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-760x348.png 760w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-1100x504.png 1100w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-600x275.png 600w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer.png 1180w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click continue, and you will be presented with a list of pre-installation requirements.  With the work we have just done, all of the status messages should be green<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"873\" height=\"732\" src=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install.png\" alt=\"install-opencart-debian-pre-install\" class=\"wp-image-2515\" srcset=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install.png 873w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install-300x252.png 300w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install-768x644.png 768w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install-380x319.png 380w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install-550x461.png 550w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install-800x671.png 800w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install-760x637.png 760w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-pre-install-600x503.png 600w\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now click continue.  Next we need to fill out the database details that OpenCart will use to make the connection to the MariaDB database we just created.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hostname = <strong>localhost<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">username = <strong>opencart<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Password = <em>the password you set in the previous step<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Database = <strong>opencartdatabase<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Leave the port as 3306 and also leave the Prefix as oc_<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You now need to create your username and password that will be used to login to the admin portal of OpenCart.  We suggest admin and a strong password.  Be sure to set a valid email address incase you forget your password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"882\" height=\"835\" src=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config.png\" alt=\"install-opencart-debian-installer-config\" class=\"wp-image-2517\" srcset=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config.png 882w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config-300x284.png 300w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config-768x727.png 768w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config-380x360.png 380w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config-550x521.png 550w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config-800x757.png 800w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config-760x720.png 760w, https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/install-opencart-debian-installer-config-600x568.png 600w\" sizes=\"auto, (max-width: 882px) 100vw, 882px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now click continue and you are set.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We next need to remove the install folder for security reasons, to do this run the following command within SSH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rm -rf \/var\/www\/html\/opencart\/install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To access your OpenCart shop, go to the URL: http:\/\/IP_address\/opencart\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To access the admin portal, go to the URL: http:\/\/IP_address\/opencart\/admin\/<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 id=\"step-4-move-the-opencart-storage-directory\" class=\"wp-block-heading\">Step 4: Move The OpenCart Storage Directory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you login to the admin portal, you will be prompted to move the storage folder outside of the main OpenCart folder, this is for security reasons.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the drop down, choose Manually Move and it will give you instructions on what to do.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Within SSH do the following:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mv \/var\/www\/html\/opencart\/system\/storage\/ \/var\/storage\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Change the following line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('DIR_STORAGE', DIR_SYSTEM . 'storage\/');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">So it looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('DIR_STORAGE', '\/var\/storage\/');\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now edit the admin config file and do the same:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vi \/var\/www\/html\/opencart\/admin\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Once again change the following line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('DIR_STORAGE', DIR_SYSTEM . 'storage\/');<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">so it looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('DIR_STORAGE', '\/var\/storage\/');<\/code><\/pre>\n\n\n\n<h2 id=\"step-5-start-adding-products-to-opencart\" class=\"wp-block-heading\">Step 5: Start Adding Products to OpenCart<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The installation is now complete.  We suggest you have a look around in the admin portal and familiarise yourself with the different menus.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenCart is very flexiable, and you can add themes to your shop to make it look more like your brand.  There are demo products already added to the store for you to look at and edit.  Once you get used to how it works you will be able to add your own categories and products.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now you have learned how to install OpenCart on Debian.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can view more information on OpenCart at the <a href=\"https:\/\/www.opencart.com\">official website<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"A lot of people dream about running their own store, or may be they already have a store&hellip;\n","protected":false},"author":3,"featured_media":2520,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"csco_singular_sidebar":"","csco_page_header_type":"","csco_appearance_grid":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"footnotes":""},"categories":[31],"tags":[22,34,33],"coauthors":[],"class_list":["post-2497","post","type-post","status-publish","format-standard","has-post-thumbnail","category-ecommerce","tag-debian","tag-ecommerce","tag-opencart","cs-entry","cs-video-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Install OpenCart On Debian 11 | Sebae Networks<\/title>\n<meta name=\"description\" content=\"Running your own online store can become a reality by using eCommerce products. Follow this tutorial on How to install OpenCart on Debian.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install OpenCart On Debian 11 | Sebae Networks\" \/>\n<meta property=\"og:description\" content=\"Running your own online store can become a reality by using eCommerce products. Follow this tutorial on How to install OpenCart on Debian.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/\" \/>\n<meta property=\"og:site_name\" content=\"Sebae Networks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sebaenetworks\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-27T19:31:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-27T19:53:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-opencart-on-debian-11.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1440\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ian Tobin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sebaenetworks\" \/>\n<meta name=\"twitter:site\" content=\"@sebaenetworks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ian Tobin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install OpenCart On Debian 11 | Sebae Networks","description":"Running your own online store can become a reality by using eCommerce products. Follow this tutorial on How to install OpenCart on Debian.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/","og_locale":"en_GB","og_type":"article","og_title":"How To Install OpenCart On Debian 11 | Sebae Networks","og_description":"Running your own online store can become a reality by using eCommerce products. Follow this tutorial on How to install OpenCart on Debian.","og_url":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/","og_site_name":"Sebae Networks","article_publisher":"https:\/\/www.facebook.com\/sebaenetworks","article_published_time":"2021-10-27T19:31:11+00:00","article_modified_time":"2021-10-27T19:53:49+00:00","og_image":[{"width":1920,"height":1440,"url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-opencart-on-debian-11.jpg","type":"image\/jpeg"}],"author":"Ian Tobin","twitter_card":"summary_large_image","twitter_creator":"@sebaenetworks","twitter_site":"@sebaenetworks","twitter_misc":{"Written by":"Ian Tobin","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#article","isPartOf":{"@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/"},"author":{"name":"Ian Tobin","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/person\/7d29331c5d1ce6cf39d0f9fe0ea76038"},"headline":"How To Install OpenCart On Debian 11","datePublished":"2021-10-27T19:31:11+00:00","dateModified":"2021-10-27T19:53:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/"},"wordCount":1146,"commentCount":0,"publisher":{"@id":"https:\/\/www.sebae.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-opencart-on-debian-11.jpg","keywords":["debian","ecommerce","opencart"],"articleSection":["Ecommerce"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/","url":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/","name":"How To Install OpenCart On Debian 11 | Sebae Networks","isPartOf":{"@id":"https:\/\/www.sebae.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#primaryimage"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-opencart-on-debian-11.jpg","datePublished":"2021-10-27T19:31:11+00:00","dateModified":"2021-10-27T19:53:49+00:00","description":"Running your own online store can become a reality by using eCommerce products. Follow this tutorial on How to install OpenCart on Debian.","breadcrumb":{"@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#primaryimage","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-opencart-on-debian-11.jpg","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-opencart-on-debian-11.jpg","width":1920,"height":1440,"caption":"how-to-install-opencart-on-debian-11"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sebae.net\/blog\/how-to-install-opencart-on-debian-11\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sebae.net\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install OpenCart On Debian 11"}]},{"@type":"WebSite","@id":"https:\/\/www.sebae.net\/blog\/#website","url":"https:\/\/www.sebae.net\/blog\/","name":"Sebae Networks","description":"Tech Tips, News, Tutorials &amp; Advice","publisher":{"@id":"https:\/\/www.sebae.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sebae.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.sebae.net\/blog\/#organization","name":"Sebae","url":"https:\/\/www.sebae.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/06\/sebae-logo-icon.png","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2023\/06\/sebae-logo-icon.png","width":512,"height":512,"caption":"Sebae"},"image":{"@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sebaenetworks","https:\/\/x.com\/sebaenetworks"]},{"@type":"Person","@id":"https:\/\/www.sebae.net\/blog\/#\/schema\/person\/7d29331c5d1ce6cf39d0f9fe0ea76038","name":"Ian Tobin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_3_1634496281-96x96.png3565f318d6daa8c0231d3ff35f9ccb2e","url":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_3_1634496281-96x96.png","contentUrl":"https:\/\/www.sebae.net\/blog\/wp-content\/uploads\/2021\/10\/avatar_user_3_1634496281-96x96.png","caption":"Ian Tobin"},"description":"Ian is a passionate Infrastructure Engineer\/Architect and Certified in technologies such as Microsoft and Citrix. He started his IT career at a young age and has over 30 years experience in the industry. His first ever computer was an Atari ST.","sameAs":["https:\/\/www.sebae.net"],"url":"https:\/\/www.sebae.net\/blog\/author\/itobin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts\/2497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/comments?post=2497"}],"version-history":[{"count":10,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts\/2497\/revisions"}],"predecessor-version":[{"id":2525,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/posts\/2497\/revisions\/2525"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/media\/2520"}],"wp:attachment":[{"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/media?parent=2497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/categories?post=2497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/tags?post=2497"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.sebae.net\/blog\/wp-json\/wp\/v2\/coauthors?post=2497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}