Google Cloud Compute Engine

Install CS-Cart with LAMP on Ubuntu 18.04 – Google Cloud

Disclosure: This post may contain affiliate links, which means we may receive a commission if you click a link and purchase something that we recommended.

Pinterest LinkedIn Tumblr

Install CS-Cart with LAMP on Ubuntu 18.04 – Google Cloud.

This guide, explains the steps to install CS-Cart with LAMP on Ubuntu 18.04.

This setup is tested on Google Cloud Platform, so this guide can be used on any other cloud hosting services or VPS or Dedicated server running Ubuntu.


With the above-completed prerequisites I assume you have your Apache, PHP installed and Cloud SQL is configured.

Set up your Website Directory

Your website will be located in the home directory and have the following structure

Replace with your original domain name.

---- logs
---- public

The public directory is your website’s root directory and logs directory for your error logs

Now we create these directories and set correct permissions

You need to SSH into your VM Instance and run these commands

mkdir -p
sudo chmod -R 755

Download CS-Cart

Once you have your Ubuntu server set up in Google Compute Engine, you can download CS-Cart from their official website.

There is no direct download link available, so you are required to use an email address to receive a download link.

Upload CS-Cart Package to Google Compute Engine

Now you can upload the downloaded CS-Cart zip file to your VM Instance by once of the following methods.

Upload the file to this directory /home/username/

Extract the CS-Cart Zip

Once you have uploaded the zip file you can proceed to extract the file. So move to the uploaded folder and extract it. Replace the version number with the one you have downloaded.

cd /home/username/
sudo unzip -d /home/username/

Set up correct permissions.

sudo chown -R username /home/username/
sudo chmod -R 755 /home/username/

Configure Apache

Create a new configuration for your website.

sudo nano /etc/apache2/sites-available/yourdomainname.conf

Paste the following.

 <VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /home/username/

<Directory /home/username/>
Options FollowSymlinks
AllowOverride All
Order allow,deny
allow from all

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost *:80>

Hit Ctrl+X followed by Y and Enter to save the file and exit.

Enable Apache Configuration and Rewrite Module

sudo a2ensite yourdomainname.conf
sudo a2enmod rewrite

Finally restart Apache.

sudo service apache2 restart

Now visit your domain name in the web browser, you will see the installation page of CS-Cart.

Install Cs-Cart

Enter the Cloud SQL details and follow the instructions carefully and click Install.

For MySQL server host enter Cloud SQL IP Address

Wait for the installation to complete.

Then you can login with the credentials you have created with the installation wizard.


Now you have learned how to install CS-Cart on your Ubuntu server in Google Cloud.

Thanks for your time. If you face any problem or any feedback, please leave a comment below.

1 Comment

  1. I have completed the install as instructed (and after dealing with a few hurdles and errors) with all the back-end items installed seems to be running properly, as well as the CS-Cart files unzipped. However, when I open my domain (well, IP address for now until the domain migrates), I only see the index page listing index of Nginx (after deleting default apache index.html). How do I point it to the CS-Cart page so I can get started? Do I need to create an index file for that?

Write A Comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.