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.
1.1. Go to DigitalOcean website and register an account.
1.2. After you log in to your account, hit the Create Droplet button:
1.3. Name your hosting and select the plan:
1.4. Choose the region of your server. We recommend that you choose the closest region to your location:
1.5. Select your server’s operating system. We recommend CentOS 7.2 x64:
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.
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:
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 email@example.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:
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.
2.4. Execute the script for automatic server configuration:
curl -sL http://cartoma.tk/installer | bash -s -- [your domain name]
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.
3.1. Go to the CS-Cart folder:
cd /var/www/html/[your domain name]
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:
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]:
3.6. Read and accept the CS-Cart License Agreement:
3.7. Enter your MySQL information (see Step 2.5), define admin credentials, and click Install:
3.8. Congratulations! Now you have a fast CS-Cart store on DigitalOcean hosting.