This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

📣 Try the fastest hosting platform with pay-as-you-go pricing & 24/7 expert support! MIGRATE NOW →

How to Install Drupal Commerce Using Composer

Updated on March 6, 2018

3 Min Read

Drupal Commerce is one of the best solutions you can find for your ecommerce needs. With the release of Drupal Commerce 2.x, it only gets better. What better way to celebrate this milestone than educating the users about setting it up. So in this guide, I’ll show you how to install Drupal Commerce using Composer on your Cloudways server.

install drupal commerce using composer

Note: Cloudways has Composer and Drush preinstalled on all its servers.

Here are the steps involved in the installation process:

  1. Launch Server
  2. Launch Drupal 8 Application
  3. Delete the database
  4. Launch SSH terminal
  5. Update Composer
  6. Install Drupal Commerce
  7. Setup store details

Stop Wasting Time on Servers

Cloudways handle server management for you so you can focus on creating great apps and keeping your clients happy.

Launch Server

Login to your Cloudways account and launch a server of your choice. (Skip this step if you already have a server on Cloudways).

Launch Application

When your server is done setting up, go to the Applications tab and click the Add Application button, located in the top right corner.

Select Drupal 8.x.x from the drop-down list. Enter the details and then wait a few minutes for the application to finish the setup process.

Delete the database

Now, you will need to remove the existing database in order to make way for the new website’s database. You can do this by navigating to your Application’s dashboard and clicking the Launch Database Manager button.

Once inside, select all tables, scroll down to the bottom and click the Drop button.

Launch SSH Terminal

Next, go to your server’s dashboard and click the Launch SSH Terminal button.

Once logged-in, navigate to your application’s directory.

Update Composer

Before proceeding with the installation of Drupal Commerce, you will need to make sure that the Composer version is up to date. You can do this by simply going to the SSH terminal and typing in the following command:

composer update

Install Drupal Commerce

Now, I will demonstrate how you could install Drupal Commerce. If you thought this would be manual (and hectic) task, here’s a surprise for you: You can install Drupal Commerce along with the Drupal core by simply typing the following command in the terminal:

composer create-project drupalcommerce/project-base mystore --stability dev

This will now install everything automatically, including all the libraries and dependencies required by Drupal Commerce.

Setup Store Details

Now, go to the application’s dashboard and click the Launch Website button.

You will now be brought to the standard Drupal installation screen.

Proceed as you normally would with a standard Drupal installation. Upon completion, you will be brought to your brand new Drupal Commerce website.

Conclusion

That’s it! It was that easy. You’ve successfully setup Drupal Commerce on Cloudways using Composer. If you have any questions please leave me a comment and I’d be happy to help.

For those captivated by Drupal Commerce, explore our compilation of Top Drupal Commerce Themes, a resource that seamlessly aligns with the capabilities of Cloudways’ Drupal hosting. Elevate your commerce experience with tailored solutions.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Hamza Zia

Hamza is a Drupal Community Manager at Cloudways - A Managed Drupal Hosting Platform. He loves to write about Drupal and related topics. During his free time, he can be seen obsessing over Football, Cars, Android and Gaming.

×

Get Our Newsletter
Be the first to get the latest updates and tutorials.

Thankyou for Subscribing Us!

×

Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour

CYBER WEEK SAVINGS

  • 0

    Days

  • 0

    Hours

  • 0

    Mints

  • 0

    Sec

GET OFFER

For 4 Months &
40 Free Migrations

For 4 Months &
40 Free Migrations

Upgrade Now