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

How to Install Opencart on Linuxmint 19

  • 00:41 lsb_release -a
  • 00:54 mysql -u root -p
  • 01:59 wget https://github.com/opencart/opencart/archive/master.zip
  • 02:13 unzip master.zip -d opencart
  • 02:35 mv opencart-master /var/www/opencart
  • 02:49 chown -R www-data.www-data /var/www/opencart
  • 03:03 chmod -R 755 /var/www/opencart
  • 03:14 vim /etc/apache2/sites-available/opencart.conf
  • 04:18 a2dissite 000-default.conf
  • 04:29 a2ensite opencart.conf
  • 04:41 a2enmod rewrite
  • 04:51 systemctl restart apache2
  • 05:43 mv config-dist.php config.php
  • 05:57 mv config-dist.php config.php
5838

Installation of Open cart on Linux Mint 19

Open cart 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. This tutorial covers the installation of the Open cart on Linux Mint 19

Requirements for Open cart:

Apache

Mysql

Php and its module

(php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-dev libmcrypt-dev php-pear)

Installation procedure

Check the Linux Mint version by using the following command.

root@linuxhelp:~# lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 19 Tara
Release: 19
Codename: tara

Configure the MySQL database. Log into MySQL as a root user and make the necessary settings.

root@linuxhelp:~# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.26-0ubuntu0.18.04.1 (Ubuntu)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create database opendb;
Query OK, 1 row affected (0.00 sec)
mysql> create user 'openuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.07 sec)
mysql> grant all privileges on opendb.* to 'openuser'@localhost;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
Bye

Once the database configuration is done, Download the Open Cart Installation package by using the wget command.

root@linuxhelp:~# wget https://github.com/opencart/opencart/archive/master.zip
--2019-06-22 10:26:52-- https://github.com/opencart/opencart/archive/master.zip
Resolving github.com (github.com)... 13.234.210.38
Connecting to github.com (github.com)|13.234.210.38|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/opencart/opencart/zip/master [following]
--2019-06-22 10:26:52-- https://codeload.github.com/opencart/opencart/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.120|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
master.zip [ <=> ] 19.76M 815KB/s in 36s
2019-06-22 10:27:30 (558 KB/s) - ‘master.zip’ saved [20721204]

Once the download is completed extract the downloaded package using unzip command.

root@linuxhelp:~# unzip master.zip -d opencart
Archive: master.zip
afd573543640315d66a4710400619a2f02822a56
creating: opencart/opencart-master/
creating: opencart/opencart-master/.github/
creating: opencart/opencart-master/.github/ISSUE_TEMPLATE/
inflating: opencart/opencart-master/.github/ISSUE_TEMPLATE/bug_report.md
inflating: opencart/opencart-master/CHANGELOG.md
inflating: opencart/opencart-master/CHANGELOG_AUTO.md
inflating: opencart/opencart-master/README.md
inflating: opencart/opencart-master/build.xml
.
.
.
inflating: opencart/opencart-master/upload/system/storage/vendor/zoujingli/wechat-php-sdk/Wechat/WechatScript.php
inflating: opencart/opencart-master/upload/system/storage/vendor/zoujingli/wechat-php-sdk/Wechat/WechatService.php
inflating: opencart/opencart-master/upload/system/storage/vendor/zoujingli/wechat-php-sdk/Wechat/WechatUser.php
inflating: opencart/opencart-master/upload/system/storage/vendor/zoujingli/wechat-php-sdk/composer.json
inflating: opencart/opencart-master/upload/system/storage/vendor/zoujingli/wechat-php-sdk/include.php
inflating: opencart/opencart-master/upload/system/storage/vendor/zoujingli/wechat-php-sdk/test.php

Enter into the Open cart directory.

root@linuxhelp:~# cd opencart

List out the files

root@linuxhelp:~/opencart# ls
opencart-master

Move the Open Cart directory to the apache root directory.

root@linuxhelp:~/opencart# mv opencart-master /var/www/opencart

Set the ownership and permission for Open cart by using the following command.

root@linuxhelp:~# chown -R www-data.www-data /var/www/opencart
root@linuxhelp:~# chmod -R 755 /var/www/opencart

Configure the virtual host for accessing the Open cart.

root@linuxhelp:~# 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>

Disable the default site access.

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

Enable the site access for accessing the Open cart.

root@linuxhelp:~# a2ensite opencart.conf
Enabling site opencart.
To activate the new configuration, you need to run:
systemctl reload apache2

Enable the rewrite module.

root@linuxhelp:~# a2enmod rewrite
Enabling module rewrite.
To activate the new configuration, you need to run:
systemctl restart apache2

Restart the apache service by using the following command.

root@linuxhelp:~# systemctl restart apache2

Switch to your browser and enter the domain name. snap1 Accept the License Agreement to use the Opencart. snap2 Check out the preinstallation requirements. snap3 Now make changes as follows.

root@linuxhelp:~# cd /var/www/opencart

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

List out and Rename the filename.

root@linuxhelp:/var/www/opencart/upload# ls

admin catalog config-dist.php image index.php install php.ini system

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

Enter into the admin directory.

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

List out and Rename the filename.

root@linuxhelp:/var/www/opencart/upload/admin# ls
config-dist.php controller index.php language model view

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

Restart the apache service by using the following command.

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

snap4 Configure the database detail and Admin account setup. snap5

snap6

Now the installation setup is complete and to access Open cart admin panel click on login as Admin. snap7

Now login with the Admin user credential. snap8

After a successful login, you will see the admin dashboard of the Open cart. snap9

with this, the method to install Opencart on Linuxmint 19 comes to an end.

Tags:
nathan
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 Open cart domain?

A

To have a host entry for the Open cart do the following,

# /etc/hosts

Q

Is there any alternative for the Open cart software?

A

The following are the alternatives for Open cart 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

After installation, it shows 404 not found while calling in the browser For Open cart?

A

Check the document root is correctly pointed in the virtual host.

Related Tutorials in How to Install Opencart on Linuxmint 19

Related Tutorials in How to Install Opencart on Linuxmint 19

How to install WinRAR 5.11 on Linuxmint 18.03
How to install WinRAR 5.11 on Linuxmint 18.03
May 22, 2018
How to Setup VNC Server on Linux Mint 20
How to Setup VNC Server on Linux Mint 20
Dec 22, 2020
How to install and configure samba setup in Linux mint - 18.3
How to install and configure samba setup in Linux mint - 18.3
Mar 26, 2018
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to Install and Configure Samba on Linux Mint 20
How to Install and Configure Samba on Linux Mint 20
Nov 9, 2020
How to Install NextCloud on Linux Mint 18.3
How to Install NextCloud on Linux Mint 18.3
Feb 27, 2018
How To Install And Update OpenSSL On Linuxmint 18.3
How To Install And Update OpenSSL On Linuxmint 18.3
Jun 8, 2018
How To Install AnyDesk on Linux Mint 18.3
How To Install AnyDesk on Linux Mint 18.3
Apr 11, 2018

Related Forums in How to Install Opencart on Linuxmint 19

Related Forums in How to Install Opencart on Linuxmint 19

Linux
isaac class=
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-8.0/mysql-client-core-8.0_8.0.21-0ubuntu0.20.04.4_amd64.deb 404 Not Found
Dec 4, 2020
Linux Mint
AlxH class=
Complete beginner, install bluegriffon
Jul 1, 2020
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
Linux Mint
bz0 class=
How to change a function of a key
Jun 7, 2019
Linux Mint
who class=
How to compare multiple files
Nov 10, 2019
NFS (Network File System)
Mike class=
Linux Mint 18.3 - NFS Shares - Only Root Can Mount Share
Oct 4, 2019
Command Line Tools
wayne class=
Deleting windows files booting from mint(usb)
Sep 16, 2017
Ubuntu
Kirin class=
Videos Always Micro-Shutter
Mar 8, 2019

Related News in How to Install Opencart on Linuxmint 19

Related News in How to Install Opencart on Linuxmint 19

A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
May 2, 2017
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Mar 14, 2017
The Best Linux Operating System is in the house: Mint 18.2
The Best Linux Operating System is in the house: Mint 18.2
Aug 12, 2017
Linux Mint 18.1 released with smooth features and offers long-term support
Linux Mint 18.1 released with smooth features and offers long-term support
Apr 11, 2017
Linux Mint 18.2 Sonya Beta version now available for download
Linux Mint 18.2 Sonya Beta version now available for download
Jun 7, 2017
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 keel johnston ?
Unhide the folders on windows Explorer

Give any solutions to unhide folder using command prompt?

forum3

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.