• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Opencart on Ubuntu 18.04

2880

To install Opencart on Ubuntu 18.04

Opencart is free and open source e-commerce platform for online shopping application and it provides a professional and reliable foundation from which we can build a successful online store. This foundation to use, to shop a variety of users and ranging from seasoned web developers looking for a user-friendly interface for using the shop owners will just launch their online business.

Prerequisites

To install LAMP(Apache, MariaDB, php7)

In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0  php7.0-common  php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl 
php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Download an Opencart package from the terminal using wget command

root@linuxhelp1:~# wget https://github.com/opencart/opencart/releases/download/3.0.2.0/3.0.2.0-OpenCart.zip
--2018-06-12 01:14:40--  https://github.com/opencart/opencart/releases/download/3.0.2.0/3.0.2.0-OpenCart.zip
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
.
.
HTTP request sent, awaiting response... 200 OK
Length: 16544198 (16M) [application/octet-stream]
Saving to: ‘ 3.0.2.0-OpenCart.zip’ 

3.0.2.0-OpenCart.zip    100%[==============================> ]  15.78M   736KB/s    in 50s    

2018-06-12 01:15:33 (325 KB/s) - ‘ 3.0.2.0-OpenCart.zip’  saved [16544198/16544198]

The download package is a zip file, so unzip the package as follows

root@linuxhelp1:~# unzip 3.0.2.0-OpenCart.zip -d opencart
Archive:  3.0.2.0-OpenCart.zip
  inflating: opencart/build.xml     
  inflating: opencart/CHANGELOG.md  
  inflating: opencart/CHANGELOG_AUTO.md 
  inflating: opencart/composer.json 
  inflating: opencart/composer.lock
.
.
  inflating: opencart/upload/system/storage/vendor/zoujingli/wechat-php-sdk/Wechat/WechatReceive.php 
  inflating: opencart/upload/system/storage/vendor/zoujingli/wechat-php-sdk/Wechat/WechatScript.php 
  inflating: opencart/upload/system/storage/vendor/zoujingli/wechat-php-sdk/Wechat/WechatService.php 
  inflating: opencart/upload/system/storage/vendor/zoujingli/wechat-php-sdk/Wechat/WechatUser.php

Move the extracted file into the HTML location

root@linuxhelp1:~# mv opencart /var/www/

switch to the following directory

root@linuxhelp1:~# cd /var/www/

Change the ownership and permission of the file as follows

root@linuxhelp1:/var/www# chown -R www-data.www-data opencart
root@linuxhelp1:/var/www# chmod -R 775 opencart

Create a new virtual host configuration for accessing the Opencart

root@linuxhelp1:/var/www# vim /etc/apache2/sites-available/opencart.conf
< virtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/opencart/upload/

< Directory /var/www/opencart/upload/> 
AllowOverride All
allow from all
< /Directory> 

< /VirtualHost> 

Enable the site access

root@linuxhelp1:/var/www# a2ensite opencart.conf
Enabling site opencart.
To activate the new configuration, you need to run:
 systemctl reload apache2

Disable the default site access

root@linuxhelp1:/var/www# a2dissite 000-default.conf
Site 000-default disabled.
To activate the new configuration, you need to run:
 systemctl reload apache2

Enable the rewrite module

root@linuxhelp1:/var/www# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
 systemctl restart apache2

Restart the apache2 service

root@linuxhelp1:/var/www# systemctl restart apache2

Now you can proceed the further installation and configuration from the browser by navigating to the following URL of http://local IP (or) domain name

browser_url

Accept the License agreement to use the Opencart

license_agreement

Check out the preinstallation requirements

pre_requirement

Now make changes as follows

root@linuxhelp1:/var/www# cd opencart/upload/

Rename the filename

root@linuxhelp1:/var/www/opencart/upload# mv config-dist.php config.php

Switch into the following directory

root@linuxhelp1:/var/www/opencart/upload# cd admin/

Rename the filename

root@linuxhelp1:/var/www/opencart/upload/admin# mv config-dist.php config.php

Restart the apache2 service

root@linuxhelp1:/var/www/opencart/upload/admin# systemctl restart apache2

After making the changes, you can proceed with the installation

check_requirement

Configure the database detail and Admin account setup

configure_db

admin_credential

Now the installation setup is complete and to access opencart admin panel click on login as Admin

installation_completed

Now login with Admin user credential

admin_login

After successful login, you will see admin dashboard of Opencart

admin_dashboard

You can choose the Admin user profile and click on your store option, and it will redirect to your site of Opencart store

profile_admin

your_store

with this, the method to install Opencart on Ubuntu 18.04 comes to an end.

Tags:
owen
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

how to create Custom error and access log for Opencart?

A

Enable custom access and error log in Opencart by enabling the following in Opencart virtual host,
Errorlog /var /log /opencartdomain/error_log
Customlog /var /log /opencartdomain/access_log

Q

How to have host entry for the opencart domain?

A

To have a host entry for the opencart do the following,
# /etc/hosts

Q

Is there any alternative for the Opencart software?

A

The following are the alternatives for Opencart software,
PrestaShop
WooCommerce
Shopify

Q

What is Opencart?

A

Opencart is a free and open source e-commerce platform for online shopping application and it provides a professional and reliable foundation from which we can build a successful online store. This foundation to use, to shop a variety of users and ranging from seasoned web developers looking for a user-friendly interface for using the shop owners will just launch their online business.

Q

What are the requirements for Opencart?

A

The requirements for Opencart are as follows,
Install LAMP(Apache, MariaDB, php7)
Configure Apache
In MariaDB (create database and user and give privileges to that user )
Install PHP 7 with following modules
(php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0 php7.0-common php7.0-xmlrpc php7.0-soap php7.0-xml php7.0-intl
php7.0-cli php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl)

Related Tutorials in How to install Opencart on Ubuntu 18.04

Related Tutorials in How to install Opencart on Ubuntu 18.04

How to Install Opencart on Ubuntu 19.04
How to Install Opencart on Ubuntu 19.04
Jun 7, 2019
How to install Opencart on Ubuntu 18.04
How to install Opencart on Ubuntu 18.04
Jun 21, 2018
How to install Opencart – 3.0.2 on CentOS – 7
How to install Opencart – 3.0.2 on CentOS – 7
May 9, 2018
How to Install Opencart on Linuxmint 19
How to Install Opencart on Linuxmint 19
Jul 15, 2019
How to install OpenCart on CentOS 7.6
How to install OpenCart on CentOS 7.6
Jun 15, 2019
How to install  opencart 3.0.2 cms on linuxmint 18.03
How to install  opencart 3.0.2 cms on linuxmint 18.03
Jun 21, 2018
How to Create Own Online Shopping Store - OpenCart
How to Create Own Online Shopping Store - OpenCart
Jun 4, 2016

Related News in How to install Opencart on Ubuntu 18.04

Related News in How to install Opencart on Ubuntu 18.04

Magecart Targets OpenCart Websites Payment Information
Magecart Targets OpenCart Websites Payment Information
May 17, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.