How to install OpenCart on VPS Ubuntu


In this tutorial, DaiServer will show you how to do the installation of OpenCart and perform settings/configuration on Debian/Ubuntu OS. Before we begin, we must first better understand what is OpenCart it? What Is OpenCART? OpenCart is a platform open source E-Commerce free online retailer/online store.


Although this free OpenCart, these platforms provide breadth to do design and configuration online store. OpenCart is based on PHP and use the database in accordance with the configuration of the server such as MYSQL, MariaDB, etc. that can be managed with CMS system (Content Management System).

With OpenCart, you can easily create a simple store online  without knowing programming language for websites such as HTML, JS, and CSS. Well if you are still confused apasih profit from the Online store?

  1. Step 1: perform the examination of the system, and make sure that the system has been updated.

# sudo apt-get updated -y && sudo apt-get upgrade -y

2. Step 2: If servermu has not been installed, then do the installation of LAMP (Linux, Apache, MySQL/MariaDB, PHP), if you want to use the LEMP (Linux, Nginx, Mysql/MariaDB, PHP) can also.

3. Step 3: If you’ve installed LEMP/LAMP, then perform the installation OpenCartnya. For his latest updates can be found at the official OpenCart.

# wget
# unzip
# mv opencart-* /var/www/html/
# mv config–dist.php config.php
# chown -R www-data.www-data /var/www/html
# chmod -R 755 /var/www/html

4. Now go into the database, if the first stage is to install the database can perform the following steps, if not we could skip this step and to step 5.

# mysql_secure_installation
# Set root password? [Y/n] y
# Remove anonymous users? [Y/n] y
# Disallow root login remotely? [Y/n] y
# Remove test database and access to it? [Y/n] y
# Reload privilege tables now? [Y/n] y

5. Create database opencart.

# mysql -u root -p
# MariaDB [(none)]> CREATE DATABASE opencart;
# MariaDB [(none)]> GRANT ALL PRIVILEGES ON opencart.* TO ‘opencartuser’@’localhost’ IDENTIFIED BY # ‘opencartuser_passwd’;
# MariaDB [(none)]> FLUSH PRIVILEGES;
# MariaDB [(none)]> \q

Do the configuration of OpenCart with access to For this step is a step that is easy, because we just fill in a few questions only.



This site uses Akismet to reduce spam. Learn how your comment data is processed.