
So, let’s change the ownership of the files and folders to the daemon: daemon by running the following command: sudo chown -R bitnami:daemon /opt/bitnami/apache2/htdocs/ Now, if you visit your Public IP, our is 3.235.163.67, then you will get a similar error like error no 1. Now, move all the files and folder at backup/upload as these are the Opencart files mv. Let’s unzip the opencart-3.0.3.6.zip to backup/ folder unzip opencart-3.0.3.6.zip -d. We are using the zip link of Opencart 3.0.3.6 as this is the latest version of Opencart now. You can get the zip URL from the Github Opencart releases. Now, let’s retrieve the Opencart zip code by using wget. So, let’s remove it by the following command: sudo rm index.html When you do the ls command then you will see index.html which shows the Bitnami page. Opencart installation steps in the AWS Lightsail LAMP stackĬhange the directory to /opt/bitnami/apache2/htdocs cd /opt/bitnami/apache2/htdocs If you are using the latest LAMP stack in AWS Lightsail then it is greater than PHP 7.4. If your PHP version is less the 7.3 than you need to upgrade to PHP 7.3+ php -v To ensure your system is up-to-date, you can run the following command: sudo apt update -yĬheck your PHP version by the following command as Opencart needs PHP version 7.3. Update system and PHP version in AWS lightsail

It may look similar to the below screenshot. Or you can navigate from All services > Compute > Lightsail.


The main AWS Lightsail dashboard page is separate from the main AWS dashboard. Go to, and create an account or log in to your AWS account. All of the PHP modules and components needed for Opencart hosting are available in the LAMP stack of AWS Lightsail. AWS Lightsail LAMP stack includes the latest versions of PHP 7+, Apache, and MySQL with phpMyAdmin and pre-configured components and PHP modules include FastCGI, ModSecurity, SQLite, Varnish, ImageMagick, xDebug, Xcache, OpenLDAP, Memcache, OAuth, PEAR, PECL, APC, GD, and cURL. In this hosting tutorial, we are looking into the AWS Lightsail LAMP stack, where we will host Opencart in AWS, and found out that there is no easy way to install it like WordPress or Magento even in AWS Lightsail, hope the Opencart package will be added soon, but for now, we need to use LAMP stack to host the Opencart in the AWS Lightsail.
