How to Setup OpenCart On AWS

Updated 19 December 2024

opencart

In this tutorial, we will learn how to install OpenCart on Ubuntu 20.04 LTS.

OpenCart is a popular shopping cart software that Polish developer Jakub Kucharski created in 2004. It allows you to create a store from scratch or improve an existing website.

It has a user-friendly interface and supports a variety of languages. OpenCart is free, open-source software available to download and use without charge.

Requirements to install OpenCart :

  • Ubuntu 20.04
  • System Requirements 2GB of RAM, 2 CPU Cores, 1 GB of Disk space
  • Webserver: Apache2
  • PHP7.3 or higher
  • MySQL 8.0

Step1:Install Apache WebServer

Start by updating the package manager cache. The sudo apt update command is used to download package information from all configured sources.

apache

Apache2 is an open-source popular, powerful, reliable, and highly extensible web/HTTP server software used by numerous websites on the internet.

apache2

You can confirm that the Apache2 service is up and enabled on boot using the following systemctl command

apache

Step 2:Install PHP

A general-purpose open-source scripting language, PHP is one of the most popular programming languages for web development.

It powers some of the most popular websites and web applications in the world.

php
php
php

Step 3:Install MySQL and Create a Database

Case 1: If you are using a Local Database Server

Now that you have a web server up and running, you need to install the database system to be able to store and manage data for your site.

MySQL is a popular database management system used within PHP environments.

code

To access the MySQL shell, run the mysql command with the -u option with sudo.

If you do not use the sudo command, you are bound to encounter the error indicated in the following screenshot.

db

Case 2: If you are using AWS RDS

rds
rds

Step 4:Download Opencart Latest Version 4.0.1.1

opencart

Then unzip the downloaded file.

opencart
opencart

After unzipping the downloaded file, you will get the upload directory, and move them to/var/www/html

code

After Moving the upload directory Files in /var/www/html rename the config.dist.php file in config.php then go to the admin directory and change here also config.dist.php name to config.php.

php

Let’s set the directory permissions accordingly:

code
apache

Next, go to http://yourdomain.com or your IP address to complete the installation

Please read the OpenCart license agreement then Click Next

imstall

Pre-Installation

install

Configuration for Database Connection Details then Click Continue.

Case 1: If you are using a Local Database Server

db

Case 2: If you are using AWS RDS

rds

Once the installation is completed, you will see this window.

opencart

You can learn how to configure the Free Self-signed certificates from Let’s Encrypt.

opencart

Conclusion

In this tutorial, you have learned to install OpenCart on Ubuntu Server. we’ve covered the most essential aspects you need to know about installing and setting up an OpenCart site.

Need Support?

Thank You for reading this Blog!

For further more interesting blogs, keep in touch with us. If you need any kind of support, simply raise a ticket at https://webkul.uvdesk.com/en/.

For further help or queries, please contact us or raise a ticket.

Category(s) AWS cloud ecommerce
author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project




    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home