Start a Project

How to setup cs-cart on AWS

You can host your online store with ease using the straightforward and effective eCommerce platform known as CS-Cart.

However, it uses MariaDB/MySQL to store its data and is written in PHP.

Using the built-in online interface, you may sell products and simply manage product inventories. There is a free 30-day trial of CS-Cart, but there is no free version.

Many features are available with CS-Cart, including multi-store, integrated SEO, theme editor, layout editor, various payment systems, and many more.

It was created specifically for creating and maintaining a great shop of any size.

We will learn how to install CS-Cart on an Ubuntu 20.04 server in this guide. Let’s start the installation.

Requirements

Step 1: Update & Upgrade The Apt Source List.

Step 2: Install LAMP Stack

Install Apache web server.

Database installation MySQL server

A database can be served from the local database server as well as through the AWS RDS.

Case 1: If you are using a Local Database Server

Case 2: If you are using AWS RDS

Amazon RDS handles routine database tasks, such as provisioning, patching, backup, recovery, failure detection, and repair.

AWS will manage everything and you do not need to worry about anything.

Firstly you have to launch an RDS and then configure it with your Ec2 instance.

Then, Install PHP using the Ondrej repository

Open the php.ini file and make the following changes once all the packages have been installed.

Do the mentioned changes in the file.

Save and close the file. Then restart the web server as well as the database server.

Now, let’s move to the next part of configuring the database for the CS cart.

MySQL Configuration:

Please follow the instructions below if you are using a local database:

If it asks for the password, simply hit enter.

Follow the instructions below if you are using an AWS RDS:

Step 3: Install CS-cart

You should first download CS-Cart from their website in the most recent version. Click here to download.

When the download is successful, use the following command to extract the downloaded file:

Let’s create a directory with the name “cscart” inside the mentioned path below.

Now unzip the downloaded file in the previously created directory “cscart”.

Next, give permission and ownership to the files and directories.

Also, run the below-mentioned commands.

Let’s move to configure the web server for the SSL & domain configuration.

Step 4: Configuring Apache for the CS-Cart

We will use the default host file to host our CS cart. Use the below command to access the file.

Then, make the required changes in the file according to your domain name.

We also have to set up the SSL for the domain to be secure. Please click here to learn how to get Let’s encrypt certificates.

Once the certs are applied to the domain. You have to mention the certs path in the default SSL file and edit the file accordingly.

Now open apache.conf file and edit the mentioned lines.

Then restart the web server.

Once all the above configurations are done. Do proceed with the CS-cart installation. Hit your domain in your favorite browser and click on Install.

After clicking on the install button agree to the terms and conditions and click on the “next step” button.

Once you click on the “next step” button, you will be redirected to the page where you have to fill in your database credentials and then click on the “Install” button.

Start the CS-Cart installation, select “Trial” for licensing, or enter your license key if you have one.

Now, click on the “select” button.

Woohoo! You have successfully installed and configured the Cs-cart. Now you can create your online store easily.

Note: Now there are some recommended steps that we have to take to protect our current installation and the source code.

First, remove the “install” directory from the root path.

It’s also advised to change the file permission. To change, run the below commands.

To access the admin page and storefront. Use the below URLs with your domain.

If you find this blog helpful, Please give us your valuable time to provide us feedback for the same.

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/.

You may also visit our CS-Cart development services and quality CS-Cart Extensions.

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

Exit mobile version