Opencart 4

One-Click Installation

OpenCart Initialization:

Overview:

This guide will walk you through initializing OpenCart on your AWS instance in just one click. The setup process is streamlined using our custom script, designed for ease of use and efficiency. Before starting the script, ensure the minimum requirement is met.

Pro Tip: We recommend associating an AWS Elastic IP with your instance before running the setup. This prevents your IP address from changing when the instance is stopped and restarted. 

 

Step 1: Access Your AWS Instance

1. Launch Your AWS EC2 Instance:

  • Choose your desired AWS EC2 instance type. (Recommended: t3a.small / t3.small)
  • Once the instance is running, connect to it via SSH.

2. Connect to the Instance:

  • Open your terminal (Mac/Linux) or use an SSH client (e.g., PuTTY for Windows).
  • Run the following SSH command:
ssh ec2-user@<your-aws-public-ip>
  • When prompted for the login, enter:
[ec2-user@…]$ sudo -i

3. Run the Initialization Script:

  • To initiate the installation, run the following command:
[root@…]$ dnf -y update
[root@…]$ /usr/local/bin/egl_init.sh.x
  • Note: This script automates the entire installation process. While it runs, ensure your terminal remains active, and do not close the session. The script may take up to 10-20 seconds to complete. The script will random generate new credentials for all the necessity.

Step 2: Instance Set Up and Installation 

1. Completion Confirmation:

  • Once the installation is finished, you will see a summary on the screen that includes all credentials.

2. Access the Web Interface:

  • Open your web browser and navigate to http://<your-public-ip> :
http://<your-public-ip>
  • You will be greeted by the welcome screen.

 

Step 3: Finalizing Installation  

1. Welcome:

  • Click Continue to agree and start the setup.

2. Pre-Installation:

  • The installer will auto-detect all the requirement is met. You shall see all requirement are ticked as pre-configured the instance for you. Click “Continue” to go to next step.

 

3. Database Configuration:

  • Get the database credentials from the summary of initialization script earlier and fill up the database settings, as below.

Section 1: Database Details

DB Driver: MySQLi
Hostname: localhost
Username: (the DB username generated in Step 1)
Password: (the DB credential generated in Step 1)
Database: opencartdb
Prefix: (anything, you may leave it as it is)
Port: 3306

Section 2: Administration

Username: (anything, this will be admin login username)
Password: (anything, this will be admin login password)
Email: opencartdb

  • Once done, press ‘Continue‘.

4. Installation Complete:

  • Congratulation! OpenCart application is installed on your server.
  • Next, we need to clean up and tighten the security of your installation.
  • Once the setup is complete, you will see the final “Congratulations” screen as below.

 

Step 4: Post Installation – Recommended by OpenCart

    • Set correct file and folder permissions to prevent unauthorized access.
    • Remove the ‘install’ folder to eliminate potential security risks.
    • Update all configuration files to reflect the changes.
  • No need to worry—we’ve got you covered! 🎯 Our automated installation script already perform all these actions exactly as recommended by OpenCart.
  • Once the script is done running, you may proceed to login.
  • Enter the username and password you set in Step 4 and press “Login“.

http://<your-public-ip>/admin

 

Important Notes:

  • Mail Sending Blockage:
    AWS may have email-sending restrictions in place by default. Before using the instance for email sending, submit a request to AWS to lift the restriction on outbound email traffic.
CONTENTS