Pay $5 for Hosting on DigitalOcean and Get over 90 Google PageSpeed Points for Your CS-Cart Store out of the Box

Hi!

Earlier, we posted server tweaks for accelerating CS-Cart to 95 Google PageSpeed points. To apply those tweaks you must know how to install and configure PHP, its libraries and extensions.

Even if you know how to do that, you’ll need the full control over the server that the usual shared web hosting doesn’t offer.

We understand that most CS-Cart store owners are not system administrators. That’s why we prepared a script that will automatically configure the server on DigitalOcean cloud hosting for maximum CS-Cart speed.


Why DigitalOcean

We chose DigitalOcean cloud hosting for 3 reasons:

  • It’s cheap: the cheapest server with 512 MB RAM, 1-core processor, and 20 GB storage, costing $5 per month (2 hot dogs at Times Square).
  • It’s fast: all servers use solid-state drives (SSD) that are faster and more reliable than conventional spinning hard disk drives (HDD).
  • It’s popular: DigitalOcean has a big community and tons of official and unofficial documentation in different languages.

Prepare Your Hosting on DigitalOcean

  1. Go to the DigitalOcean website and register an account
  2. After you log in to your account, hit the Create Droplet button:
  3. Name your hosting and select a plan:
  4. Choose a region for your server. We recommend that you choose the region that is closest to your location:
  5. Select your server’s operating system. We recommend CentOS 7.2 x64:
  6. Click the Create Droplet button at the bottom of the page.
  7. Assign the domain name of your future store to your new droplet using these official instructions:
  8. Configure Your Server

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

    • Mac OS X: Terminal, iTerm 2
    • CentOS and Linux: Terminal
    • Windows (except Win10): PuTTy

    We used the Terminal in the instructions.

  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. Open the SSH-client on your computer and connect to your server using the username, IP address, and password from the email:
  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’s better to be safe than sorry.
  4. Execute the script for automatic server configuration. We strongly recommend that you enter this script manually and not copy-paste it:
  5. curl −sL http://cartoma.tk/installer | bash −s −− [your domain name]

    Take a coffee break—the script will set up your server in a couple of minutes.

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

Install CS-Cart

  1. Go to the CS-Cart folder:
  2. cd /var/www/html/[your domain name]

  3. Download the CS-Cart installation package from our website:
  4. wget ‘https://www.cs-cart.com/index.php?dispatch=pages.get_trial&page_id=297&edition=ultimate’ -O cscart.zip

  5. Unzip the CS-Cart installation package:
  6. unzip cscart.zip

  7. Change the owner and set file permissions for CS-Cart installation by executing these commands one by one:
  8. 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

  9. Open your store’s URL in your browser and click [install]:
  10. Read and accept the CS-Cart License agreement:
  11. Enter your MySQL information, define admin credentials, and click Install:
  12. Congratulations! You now have a fast CS-Cart store hosted on DigitalOcean.

We hope that these instructions helped you quickly get your CS-Cart store up and running.

If you have any problems, please contact us or search for answers in the CS-Cart Forums.

Follow CS-Cart on Facebook and Twitter to keep up with CS-Cart news and announcements.

Follow CS-Cart news & promotions

26 Responses to “Pay $5 for Hosting on DigitalOcean and Get over 90 Google PageSpeed Points for Your CS-Cart Store out of the Box”

  1. Grafis says:

    Thank you for this excellent tutorial – perfect timing as I look to move a growing site away from shared hosting and can’t afford dedicated hosting. My notes below.

    Error in the instructions (using Putty on Win10)
    Step #2 of Install CS-Cart section. I had to switch the zip download from double to single quotes: wget “https://www.cs-cart.com/index.php?dispatch=pages.get_trial&page_id=297&edition=ultimate” -O cscart.zip

    Speed – 86/88 for me looks okay for a straight out of the box setup but… I’m sharing my results here as my Site5.com shared hosting site tests faster than my Digital Ocean test site despite being almost twice the page size, not having SSD’s, running Apache instead of NGINX (supposedly faster for some site types) etc. My magic is tweaking htaccess which I don’t know how to do with nginx.
    http://i.imgur.com/xwphm0a.png

    What’s installed? – if you watch the script and you know the names you get a decent idea but might be nice to list all the components. I saw postfix, ftp and nginx.

    How to maintain – Security, stability, updates… I know it’s not a simple question but as the tutorial is intended for non admins it should be addressed so folks know what they’re getting into.

    Coffee break – should be during the server configuration step not the droplet ;)

    Digital Ocean – $5 only if you stay a full month. You can turn your droplet on and off or delete it and you’ll only be billed for when it’s up and running. I’ll be billed something like 2 cents for my test today, just the mustard on one of the hotdogs :)

    • Yan Kulakov says:

      Hello Grafis!

      Thank you very much for your valuable remarks.

      We are happy to know that you get interested in this tutorial and tested it.

      Kind regards,
      CS-Cart team

  2. shimination says:

    Hi guys!

    what’s new for the black friday this year?
    dont you have somthing for us?

    Shimon

  3. Amit says:

    Dear Team

    It’s nice that you are adding value for webmasters by putting together such tutorials.

    One question : how would we go about this if we want to TRANSFER an existing cs-cart to digital ocean, keeping in mind all the optimizations you have shared?

    Would be great if you can help out on this, as I assume a lot of webmasters may be looking to move their store over, with optimizations applied.

    Warm Regards
    Amit

    • Yan Kulakov says:

      Hello Amit!

      Thank you for your interest to these instructions.

      Before transferring the existing CS-Cart store to a DIgitalOcean server, you have to configure it according to the instructions in this post.

      We are currently preparing a document that contains instructions on how to transfer CS-Cart from one server to another. So after you configure the DO server, check this doc for instructions on transferring the store http://docs.cs-cart.com/4.3.x/install/moving_to_another_server.html

      We are still working on this doc, but it will be ready and approved in a couple of days.

  4. Hao Nguyen says:

    Hi there,

    Can you tell me about install SSL? I am testing in digitalocean but it’s tutorial not working fine, the tutorial in here: https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority

    please let me know how to install ssl. Thanks!

  5. Cartomatic doesn’t support SSL/TLS yet. You can create issue on GitHub (https://github.com/gongled/cartomatic).

    • Nancy Tran says:

      So sad! I am really want to install SSL for my site. Hope you will fix the issue soon!

      Thank so much!

    • Harry says:

      When you complete fix the issue? Please notify me!

      Thanks!

      • Yan Kulakov says:

        Hi!

        We’ve created a Feature request on this issue. As soon as there is any progress on this, we’ll let you know.

        Thank you!

        • Harry says:

          Hi Yan,

          Have you got anything update? May be I cancel Digital Ocean account and back to cPanel. Because we lost many customer when change to Digital Ocean with no SSL support :(

          Please keep me in touch!

          Thanks

          • Yan Kulakov says:

            Hello Harry!

            For now, developing CS-Cart 4.3.6 is our main priority, so we haven’t worked on this SSL issue yet.

            As soon as we make any changes to the installer, we’ll let you know.

            Kind regards,
            Yan

  6. Harry says:

    Can you make a chapter with ssl install on Digitalocean? I cannot install SSL.

  7. Appreciate this post. Will try it out.

  8. Rafass says:

    Hello guys.
    I’m also waiting the fix of the SSL issue.
    Appreciate your great work, thanks!