Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

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

by Cloudbooklet
5 years ago
in Google Cloud, Compute Engine
Install Cs-Cart With Lamp On Ubuntu 18.04 - Google Cloud
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

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. ADVERTISEMENT Prerequisites A running Compute […]

ADVERTISEMENT

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.

ADVERTISEMENT

Prerequisites

  • A running Compute Engine, see the Setting up Compute Engine Instance with Ubuntu 18.04
  • Initial Ubuntu Server Set up.
  • Install LAMP stack on Ubuntu in Google Cloud.
  • A running Cloud SQL instance, see How to set up Cloud SQL in Google Cloud

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

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Set up your Website Directory

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

Replace yourdomainname.com with your original domain name.

ADVERTISEMENT
home
-- yourdomainname.com
---- 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

ADVERTISEMENT

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

mkdir -p yourdomainname.com/logs yourdomainname.com/public
sudo chmod -R 755 yourdomainname.com

Download CS-Cart

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

ADVERTISEMENT

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.

ADVERTISEMENT

Upload the file to this directory /home/username/yourdomainname.com/public

  • Use FileZilla to transfer files to VM Instance (Recommended).
  • Upload CS-Cart to Google Cloud Storage and transfer to VM Instance.
  • Upload using Cloud Shell.

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/yourdomainname.com/public
sudo unzip cscart_v4.9.3.sp1.zip -d /home/username/yourdomainname.com/public

Set up correct permissions.

sudo chown -R username /home/username/yourdomainname.com/public
sudo chmod -R 755 /home/username/yourdomainname.com/public

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/yourdomainname.com/public/
ServerName yourdomainname.com
ServerAlias www.yourdomainname.com

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

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.

Conclusion

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.

Tags: Compute EngineCS-CartUbuntu 18.04
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Comments 1

  1. Avatar Of Phaedra Phaedra says:
    3 years ago

    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?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Disc-Less Xbox Series X

Microsoft Unveils New Disc-Less Xbox Series X with Lift-to-Wake Controller

September 21, 2023

7 Best AI Girl Generators for Creating Realistic and Beautiful AI Girls

WhatsApp Business Gets New Features to Help your Businesses Grow

How to See all my Birthday Posts on Facebook

Microsoft Surface Event: The Most Exciting and Innovative Launches and Updates

10 Best AI Song Generator in 2023 (Free and Paid)

Popular Articles

Ai Jewellery Generator

Top 5 AI Jewellery Generators to Create Jewellery Designs

September 6, 2023

18+ Best Free NSFW AI Generators of 2023

How to Create a Personal AI Assistant with LocalGPT

Top 5 Free Linux Cloud Servers to Host Your Website

Top 10 AI Presentation Maker: Easy Way to Create Stunning Presentations

Bigjpg AI: Best AI Image Upscaler for Super Resolution

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.