How To: Install CS-Cart on DigitalOcean Hosting

Note

You’ll need to use the command line and might have to install an SSH client.

In this tutorial, you will learn how to install CS-Cart on a DigitalOcean server. DigitalOcean is an SSD cloud hosting that offers virtual private servers.

We will also use a script that will automatically configure the server on DigitalOcean cloud hosting for maximum CS-Cart speed.

Step 1. Prepare Your Hosting

1.1. Go to DigitalOcean website and register an account.

1.2. After you log in to your account, hit the Create Droplet button:

Create a Droplet on DigitalOcean.

1.3. Name your hosting and select the plan:

Choose a name for your hosting and select a plan.

1.4. Choose the region of your server. We recommend that you choose the closest region to your location:

Select a region for your server.

1.5. Select your server’s operating system. We recommend CentOS 7.2 x64:

Select an operating system for your server.

1.6. Click the Create Droplet button at the bottom of the page.

Take a coffee break — your hosting will be ready in a couple of minutes.

1.7. Assign the domain name of your future store to your new droplet using these official instructions.

Assigning a domain name to the droplet.

Step 2. Configure Your Server

Note

You’ll need an SSH client to connect to your server, execute the configuration script, and install CS-Cart. Here are free, commonly-used SSH-clients:

  • Mac OS X: Terminal, iTerm 2
  • Linux: Terminal, KDE Konsole, XTerm
  • Windows: PuTTy

We used the Linux Terminal in the instructions.

2.1. DigitalOcean has sent you an email with your server’s credentials to the address you had signed up with. Check your mailbox for the “Your New Droplet” email from support@support.digitalocean.com.

2.2. Open the SSH-client on your computer and connect to your server using the username, IP address, and the password from the email:

Connecting to your server via SSH.

2.3. After you connect to your server, reset the password.

You have to change the password only at the first connection to your server. Please use a strong password — it gives the full access to your server.

Resetting your server password.

2.4. Execute the script for automatic server configuration:

curl -sL http://cartoma.tk/installer | bash -s -- [your domain name]
Connecting to your server via SSH.

2.5. When the script completes the server configuration, you will see the path to your future store directory and database information. Save this data as you will need it later.

Connecting to your server via SSH.

Step 3. Install CS-Cart

3.1. Go to the CS-Cart folder:

cd /var/www/html/[your domain name]
Switching to the folder with CS-Cart.

3.2. Download the CS-Cart installation package from our website:

wget "https://www.cs-cart.com/index.php?dispatch=pages.get_trial&page_id=297&edition=ultimate" -O cscart.zip

3.3. Unzip the CS-Cart installation package:

unzip cscart.zip

3.4. Change the owner and set file permissions for CS-Cart installation by executing these commands one by one:

chown -R service ./
chmod 644 config.local.php
chmod -R 755 design images var
find design -type f -print0 | xargs -0 chmod 644
find images -type f -print0 | xargs -0 chmod 644
find var -type f -print0 | xargs -0 chmod 644

3.5. Open your store’s URL in your browser and click [install]:

CS-Cart browser installation.

3.6. Read and accept the CS-Cart License Agreement:

CS-Cart License Agreement.

3.7. Enter your MySQL information (see Step 2.5), define admin credentials, and click Install:

Enter the information from Step 2.5 to the fields.

3.8. Congratulations! Now you have a fast CS-Cart store on DigitalOcean hosting.