Opencart 4

Requirement

Instance Configuration Requirements

Overview:

When setting up your AWS instance, you’ll need to configure a few key options. Here’s a detailed guide on the recommended configurations and selections.

 

1. Instance Type

For optimal performance, we recommend using the following instance types:

t3a.small or t3.small (recommended) – 2 virtual CPUs and 2 GB memory

 

However, you can choose an instance type based on your specific workload and traffic needs. Here’s a quick reference table to help you decide:

Workload CPU / Memory
Evaluation, a small catalogue 2 vCPU / 2 GB (t3a.small)
A live shop with regular orders and a few hundred products 2 vCPU / 4 GB
A large catalogue, many product images, busy traffic 4 vCPU / 8 GB or more

OpenCart and MariaDB run as containers on the same instance and share its memory. If your catalogue, order history and product images grow, add memory and storage before adding CPU.

For more details on different instance types and configurations, refer to the AWS Instance Types documentation.

 

2. Storage Space

The default allocated storage size for our AMI. You may specify the necessary storage size when launching a new instance or change it after deployment.

20 GB (recommended)

 

3. Ports Configuration

To ensure smooth operation of your OpenCart installation, it’s important to open the appropriate inbound and outbound ports. Below are the recommended port settings, though you may configure them based on your specific security group requirements:

 

Inbound Ports:

Type Protocol Port Range Source
SSH TCP 22 0.0.0.0/0
HTTP TCP 80 0.0.0.0/0
HTTPS TCP 443 0.0.0.0/0

You do not need to open inbound ports for email. OpenCart does not receive mail. It connects out to your mail provider to send order confirmations, invoices and customer notifications. AWS security groups are stateful, so those outbound connections and their replies are already permitted by the outbound rule below.

You do not need to open port 3306. MariaDB runs on an isolated internal Docker network and is not reachable from outside the instance. This is deliberate.

Outbound Ports:

Type Protocol Port Range Destination
All traffic All All 0.0.0.0/0

 

 

4. Your administration address

  • The administration area is not at /admin. For your security it is given a different name on every instance, in the form ocadmin followed by four digits.
  • The full address, and the administrator password, are shown once in the summary at the end of installation. Keep them.
  • If you lose the address you can find it again on the instance:
sudo grep admin_dir /var/www/log/egl_init.log

5. Important Notes:

  • Outbound mail must be configured inside OpenCart. This image does not include a local mail server, so OpenCart sends through an SMTP server that you provide. Set this under System > Settings > edit your store > Mail using your own domain’s SMTP details. Note that AWS blocks outbound port 25 by default, so use port 587 or 465 with your mail provider. AWS also imposes restrictions on sending email from EC2 instances, and you may need to submit a request to AWS to lift them.
CONTENTS