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

How to install OpenCart on CentOS 7.6

  • 00:43 rpm -q centos-release
  • 01:01 mysql -u root -p
  • 02:08 wget https://github.com/opencart/opencart/archive/master.zip
  • 02:24 unzip master.zip
  • 02:36 mv opencart-master /var/www/opencart
  • 02:49 chown -R apache:apache /var/www/opencart
  • 03:02 chmod -R 755 /var/www/opencart
  • 03:14 vim /etc/httpd/conf.d/opencart.conf
  • 04:32 systemctl restart httpd
5706

Installation of openCart On Centos 7.6

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.This tutorial covers the installation of opencart on centos 7.6

Requirements for Open cart:

Apache

Mariadb

Php and it's modules

php php-xml php-mysql php-mbstring php-zip php-soap php-curl php-gd php-ldap php-imap php-common php-mcrypt

Installation procedure

Check the Centos version by using the following command

[root@linuxhelp ~]# rpm -q centos-release
centos-release-7-6.1810.2.el7.centos.x86_64
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 MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 5.5.60-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database opencart;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> create user 'openuser'@localhost identified by 'Linuxc#4';
Query OK, 0 rows affected (0.06 sec)

MariaDB [(none)]> grant all privileges on opencart.* to 'openuser'@localhost;
Query OK, 0 rows affected (0.01 sec)

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> Ctrl-C -- exit!
Aborted

Once the database configuration is done, download the installation package of Open cart by using the wget command.

[root@linuxhelp ~]# wget https://github.com/opencart/opencart/archive/master.zip
--2019-06-01 15:34:56--  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-01 15:34:56--  https://codeload.github.com/opencart/opencart/zip/master
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’

   [    <=>                                                    ] 20,733,008   968KB/s   in 24s    

2019-06-01 15:35:21 (846 KB/s) - ‘master.zip’ saved [20733008]

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

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

Move the Open cart directory to apache root directory.

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

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

 [root@linuxhelp ~]# chown -R apache:apache /var/www/opencart
 [root@linuxhelp ~]# chmod -R 755 /var/www/opencart

Configure the virtualhost for accessing the Open cart.

 [root@linuxhelp ~]# vim /etc/httpd/conf.d/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>

Restart the apache service by using the following command.

[root@linuxhelp ~]# systemctl restart httpd

Switch to your browser and enter the domain name. snap1

Accept the License agreement to use the Opencart. snap2

Check out the pre installation requirements. snap3

List out and Rename the filename.

 [root@linuxhelp ~]# cd /var/www/opencart/upload
[root@linuxhelp upload]# ls
admin  catalog  config-dist.php  image  index.php  install  php.ini  system
[root@linuxhelp upload]# mv config-dist.php config.php

Enter into directory

 [root@linuxhelp upload]# cd admin

List out and Rename the filename.

 [root@linuxhelp admin]# ls
config-dist.php  controller  index.php  language  model  view
 [root@linuxhelp admin]# mv config-dist.php config.php

Restart the apache service

 [root@linuxhelp admin]# systemctl restart httpd

snap4

Configure the database detail and Admin account setup. snap5 snap6

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

Now login with Admin user credential snap8

After successful login, you will see the admin dashboard of OpenCart. snap9

With this, the method to install Opencart on Centos 7.6 comes to an end.

Tags:
jacob
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

After installation, it shows 404 not found while calling in browser on opencart?

A

check the document root are correctly pointed in VirtualHost.

Related Tutorials in How to install OpenCart on CentOS 7.6

Related Tutorials in How to install OpenCart on CentOS 7.6

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How to install OpenCart on CentOS 7.6

Related Forums in How to install OpenCart on CentOS 7.6

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
Pligg
aiden class=
CMS : Pligg install on opensuse
Oct 6, 2017

Related News in How to install OpenCart on CentOS 7.6

Related News in How to install OpenCart on CentOS 7.6

WordPress and Joomla websites infected by new backdoor malware
WordPress and Joomla websites infected by new backdoor malware
May 31, 2019
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 Isaiah ?
What is the use of SUID & SGID commands

How to set the special permissions to the files and folders using SUID and SGID commands...

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.