{"id":29716,"date":"2019-04-03T13:26:19","date_gmt":"2019-04-03T18:26:19","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=29716"},"modified":"2022-12-12T06:51:16","modified_gmt":"2022-12-12T12:51:16","slug":"how-to-install-opencart-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/","title":{"rendered":"How to Install OpenCart on Ubuntu 18.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"size-full wp-image-29745 alignnone\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg\" alt=\"Install OpenCart on Ubuntu 18\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>OpenCart is a free and open-source shopping cart system. It is a PHP-based platform for creating online stores, delivering all standard e-commerce functionalities needed for managing an online shop. OpenCart has free lifetime support, software updates, and is localized in many languages and currencies, making it one of the most popular and widely-used self-hosted e-commerce platforms available. In this tutorial, we will show you how to install OpenCart on your Ubuntu 18.04 server.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ef396d0e0d5\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ef396d0e0d5\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#Requirements\" >Requirements:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#1-Getting-Started\" >1. Getting Started<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#2-Install-the-MySQL-Database-Server\" >2. Install the MySQL Database Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#3-Create-a-Database-for-OpenCart\" >3. Create a Database for OpenCart<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#4-Install-Apache-and-PHP\" >4. Install Apache and PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#5-Download-the-Latest-Release-of-OpenCart\" >5. Download the Latest Release of OpenCart<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#6-Configure-Apache2\" >6: Configure Apache2<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Requirements\"><\/span>Requirements:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>For the purposes of this tutorial, we will use an <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 18.04 VPS<\/a><\/li>\n<li>Full SSH root access or a user with sudo privileges is also required.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"1-Getting-Started\"><\/span>1. Getting Started<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, you will need to login to your server via SSH as the root user:<\/p>\n<pre>ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\n<p>and replace \u201cIP_ADDRESS\u201d and \u201cPORT_NUMBER\u201d with your actual server IP address and SSH port number.<\/p>\n<p>Once logged in, let\u2019s make sure that your Ubuntu 18.04 server is up-to-date by running the following commands:<\/p>\n<pre>$ sudo apt-get update\r\n$ sudo apt-get upgrade<\/pre>\n<p>This will update the package index and will update the software currently installed on the server to the latest version.<\/p>\n<p>Once your system is fully up-to-date, we can now proceed with the OpenCart installation.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2-Install-the-MySQL-Database-Server\"><\/span>2. Install the MySQL Database Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we will install the MySQL server. To install the default package, run the following command:<\/p>\n<pre>$ sudo apt-get install mysql-server<\/pre>\n<p>This will install MySQL 5.7 on your server, but it will not prompt you to set a password or make any other configuration changes. Because this leaves your installation of MySQL insecure, in order to improve the security of your MySQL server, we recommend that you run the \u2018<strong>mysql_secure_installation<\/strong>\u2018 script by typing the following command:<\/p>\n<pre>$ mysql_secure_installation<\/pre>\n<p>This script will help you to perform important security tasks like setting up a root password, disable remote root login, remove anonymous users, etc.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3-Create-a-Database-for-OpenCart\"><\/span>3. Create a Database for OpenCart<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, we will create our MySQL database for our OpenCart site. Log in to your MySQL server with the following command and enter your MySQL root password:<\/p>\n<pre>sudo mysql -u root -p<\/pre>\n<p>In this section, we will create a new MySQL database <code>opencart<\/code> and assign user access to it to a new user <code>admin_user<\/code> with the\u00a0password <code>Strong_Password<\/code>:<\/p>\n<pre>CREATE DATABASE opencart;\r\nGRANT ALL PRIVILEGES ON opencart.* TO 'admin_user'@'localhost' IDENTIFIED BY 'Strong_Password';\r\nFLUSH PRIVILEGES;\r\nexit;<\/pre>\n<p>Don\u2019t forget to replace \u2018Strong_Password\u2019 with an actual strong password.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-Apache-and-PHP\"><\/span>4. Install Apache and PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To install the Apache web server, run the following command:<\/p>\n<pre>$ sudo apt-get install apache2<\/pre>\n<p>After the installation is complete, you should enable Apache to start automatically upon server reboot with:<\/p>\n<pre>$ sudo systemctl enable apache2<\/pre>\n<p>You can also check the status of your Apache service with the following command:<\/p>\n<pre>$ sudo systemctl status apache2<\/pre>\n<p>Output:<\/p>\n<pre>apache2.service - The Apache HTTP Server\r\n   Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset:\r\n  Drop-In: \/lib\/systemd\/system\/apache2.service.d\r\n           \u2514\u2500apache2-systemd.conf\r\n   Active: active (running)\r\n  Process: 728 ExecStart=\/usr\/sbin\/apachectl start (code=exited, status=0\/SUCCES\r\n Main PID: 855 (apache2)\r\n    Tasks: 6 (limit: 2321)\r\n   CGroup: \/system.slice\/apache2.service\r\n           \u251c\u2500855 \/usr\/sbin\/apache2 -k start\r\n           \u251c\u2500876 \/usr\/sbin\/apache2 -k start\r\n           \u251c\u2500877 \/usr\/sbin\/apache2 -k start\r\n           \u251c\u2500878 \/usr\/sbin\/apache2 -k start\r\n           \u251c\u2500879 \/usr\/sbin\/apache2 -k start\r\n           \u2514\u2500880 \/usr\/sbin\/apache2 -k start\r\n<\/pre>\n<p>Since OpenCart is a PHP-based application, our next step is to install PHP and some PHP extensions required by OpenCart:<\/p>\n<pre>$ sudo apt-get install php libapache2-mod-php<\/pre>\n<pre>$ sudo apt-get install php-cli php-common php-mbstring php-gd php-intl php-xml php-mysql php-zip \r\nphp-curl php-xmlrpc<\/pre>\n<p>Restart the Apache web server to load the PHP modules:<\/p>\n<pre>$ sudo systemctl restart apache2<\/pre>\n<p>Now check the PHP version installed on your server:<\/p>\n<pre>$ php -v<\/pre>\n<p>Output:<\/p>\n<pre>PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )\r\nCopyright (c) 1997-2018 The PHP Group\r\nZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies\r\n    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"5-Download-the-Latest-Release-of-OpenCart\"><\/span>5. Download the Latest Release of OpenCart<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The latest version of OpenCart (v.3.0.3.1) can be downloaded from the OpenCart website (recommended for end users) or directly from Github (recommended for web developers). The download page also offers access to previous versions of OpenCart.<\/p>\n<pre>$ sudo wget https:\/\/github.com\/opencart\/opencart\/releases\/download\/3.0.3.1\/opencart-3.0.3.1.zip\r\n$ sudo unzip opencart-3.0.3.1<\/pre>\n<pre>$ sudo mv upload\/ \/var\/www\/html\/opencart\r\n$ sudo cd \/var\/www\/html\/opencart\/\r\n$ sudo cp config-dist.php config.php\r\n$ sudo cp admin\/config-dist.php admin\/config.php<\/pre>\n<p>Then run the commands below to set the correct permissions for OpenCart to function.<\/p>\n<pre>$ sudo chown -R www-data:www-data \/var\/www\/html\/opencart\/<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"6-Configure-Apache2\"><\/span>6: Configure Apache2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We can now create our virtual host files. Run the following command to create the virtual host configuration file for your domain, <strong>your_domain.com<\/strong>:<\/p>\n<pre>$ sudo nano \/etc\/apache2\/sites-available\/your_domain.com.conf<\/pre>\n<p>Then copy and paste the content below into the file and save it. Replace the &#8220;your_domain.com&#8221; with your own domain name and directory root location.<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\n     ServerAdmin admin@your_domain.com\r\n     DocumentRoot \/var\/www\/html\/opencart\/\r\n     ServerName <code>your_domain.com<\/code> ServerAlias <code>www.your_domain.com<\/code> &lt;Directory \/var\/www\/html\/opencart\/&gt; Options FollowSymlinks AllowOverride All Order allow,deny allow from all &lt;\/Directory&gt; ErrorLog ${APACHE_LOG_DIR}\/error.log CustomLog ${APACHE_LOG_DIR}\/access.log combined &lt;\/VirtualHost&gt;<\/pre>\n<p>Save the file and exit.<\/p>\n<p>Activate the virtual host by creating a symbolic link :<\/p>\n<pre>$ sudo ln -s \/etc\/apache2\/sites-available\/your_domain.com.conf \/etc\/apache2\/sites-enabled\/your_domain.com.conf<\/pre>\n<p>Restart Apache for the changes to take effect:<\/p>\n<pre>$ sudo systemctl restart apache2<\/pre>\n<p>To access your OpenCart installation, you will need to type the following URL in your web browser:<\/p>\n<pre><code>http:\/\/your_domain.com\/<\/code><\/pre>\n<p>and you will see the following screen:<\/p>\n<figure id=\"attachment_29717\" aria-describedby=\"caption-attachment-29717\" style=\"width: 1507px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-29717 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_1.png\" alt=\"How to Install OpenCart on Ubuntu 18.04\" width=\"1517\" height=\"613\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_1.png 1517w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_1-150x61.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_1-300x121.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_1-768x310.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_1-1024x414.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_1-1080x436.png 1080w\" sizes=\"(max-width: 1517px) 100vw, 1517px\" \/><figcaption id=\"caption-attachment-29717\" class=\"wp-caption-text\">How to Install OpenCart on Ubuntu 18.04<\/figcaption><\/figure>\n<p>Read the agreement and click <b>\u2018CONTINUE\u2019<\/b> to proceed.<\/p>\n<p>The next screen will display the pre-installation information to make sure your installation is set up as required.<\/p>\n<figure id=\"attachment_29718\" aria-describedby=\"caption-attachment-29718\" style=\"width: 1441px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-29718 size-full\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_2.png\" alt=\"How to Install OpenCart on Ubuntu 18.04\" width=\"1451\" height=\"771\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_2.png 1451w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_2-150x80.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_2-300x159.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_2-768x408.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_2-1024x544.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_2-1080x574.png 1080w\" sizes=\"(max-width: 1451px) 100vw, 1451px\" \/><figcaption id=\"caption-attachment-29718\" class=\"wp-caption-text\">How to Install OpenCart on Ubuntu 18.04<\/figcaption><\/figure>\n<p>Finally, you will be required to select a DB driver (in our case MySQL) and enter the database values that you created above as shown below. You will also need to create a username and a password for login to your OpenCart admin section.<\/p>\n<figure id=\"attachment_29719\" aria-describedby=\"caption-attachment-29719\" style=\"width: 1419px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"size-full wp-image-29719\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_3.png\" alt=\"How to Install OpenCart on Ubuntu 18.04\" width=\"1429\" height=\"933\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_3.png 1429w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_3-150x98.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_3-300x196.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_3-768x501.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_3-1024x669.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_3-1080x705.png 1080w\" sizes=\"(max-width: 1429px) 100vw, 1429px\" \/><figcaption id=\"caption-attachment-29719\" class=\"wp-caption-text\">How to Install OpenCart on Ubuntu 18.04<\/figcaption><\/figure>\n<figure id=\"attachment_29720\" aria-describedby=\"caption-attachment-29720\" style=\"width: 1547px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"size-full wp-image-29720\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_4.png\" alt=\"How to Install OpenCart on Ubuntu 18.04\" width=\"1557\" height=\"942\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_4.png 1557w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_4-150x91.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_4-300x182.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_4-768x465.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_4-1024x620.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_4-1080x653.png 1080w\" sizes=\"(max-width: 1557px) 100vw, 1557px\" \/><figcaption id=\"caption-attachment-29720\" class=\"wp-caption-text\">How to Install OpenCart on Ubuntu 18.04<\/figcaption><\/figure>\n<p>Once you install OpenCart, you must remove the <strong class=\"markup--strong markup--p-strong\">Install<\/strong> directory, however, you shouldn&#8217;t touch any other directories.<\/p>\n<pre>$ sudo rm -rf install\/<\/pre>\n<p><img decoding=\"async\" class=\"size-full wp-image-29721\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_5.png\" alt=\"How to Install OpenCart on Ubuntu 18.04\" width=\"1931\" height=\"669\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_5.png 1931w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_5-150x52.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_5-300x104.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_5-768x266.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_5-1024x355.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/OpenCart_5-1080x374.png 1080w\" sizes=\"(max-width: 1931px) 100vw, 1931px\" \/><\/p>\n<p>Congratulations. You have successfully installed OpenCart on your Ubuntu 18.04 VPS.<\/p>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a href=\"https:\/\/www.rosehosting.com\/vps-hosting.html\">Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install OpenCart for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><strong><span style=\"color: #ff0000;\">PS<\/span><\/strong>. If you liked this post, please share it with your friends on the social networks using the share shortcuts below, or simply leave a comment in the comment section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenCart is a free and open-source shopping cart system. It is a PHP-based platform for creating online stores, delivering all &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install OpenCart on Ubuntu 18.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#more-29716\" aria-label=\"Read more about How to Install OpenCart on Ubuntu 18.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":29745,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1698],"tags":[222,1779],"class_list":["post-29716","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-opencart","tag-ubuntu-18-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install OpenCart on Ubuntu 18.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install OpenCart on Ubuntu 18.04 | RoseHosting\" \/>\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.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install OpenCart on Ubuntu 18.04\" \/>\n<meta property=\"og:description\" content=\"How to Install OpenCart on Ubuntu 18.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-03T18:26:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-12T12:51:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install OpenCart on Ubuntu 18.04\",\"datePublished\":\"2019-04-03T18:26:19+00:00\",\"dateModified\":\"2022-12-12T12:51:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/\"},\"wordCount\":828,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/install-opencart-ubuntu18.jpg\",\"keywords\":[\"opencart\",\"Ubuntu 18.04\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/\",\"name\":\"How to Install OpenCart on Ubuntu 18.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/install-opencart-ubuntu18.jpg\",\"datePublished\":\"2019-04-03T18:26:19+00:00\",\"dateModified\":\"2022-12-12T12:51:16+00:00\",\"description\":\"How to Install OpenCart on Ubuntu 18.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/install-opencart-ubuntu18.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/install-opencart-ubuntu18.jpg\",\"width\":742,\"height\":372,\"caption\":\"Install OpenCart on Ubuntu 18\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-opencart-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install OpenCart on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install OpenCart on Ubuntu 18.04 | RoseHosting","description":"How to Install OpenCart on Ubuntu 18.04 | RoseHosting","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.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install OpenCart on Ubuntu 18.04","og_description":"How to Install OpenCart on Ubuntu 18.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-04-03T18:26:19+00:00","article_modified_time":"2022-12-12T12:51:16+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install OpenCart on Ubuntu 18.04","datePublished":"2019-04-03T18:26:19+00:00","dateModified":"2022-12-12T12:51:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/"},"wordCount":828,"commentCount":1,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg","keywords":["opencart","Ubuntu 18.04"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/","name":"How to Install OpenCart on Ubuntu 18.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg","datePublished":"2019-04-03T18:26:19+00:00","dateModified":"2022-12-12T12:51:16+00:00","description":"How to Install OpenCart on Ubuntu 18.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/02\/install-opencart-ubuntu18.jpg","width":742,"height":372,"caption":"Install OpenCart on Ubuntu 18"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-opencart-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install OpenCart on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=29716"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29716\/revisions"}],"predecessor-version":[{"id":44138,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29716\/revisions\/44138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/29745"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=29716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=29716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=29716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}