OroCommerce 1.0 was released on January 18th, 2017 with a promise that it will create an evolution in B2B Online Business and change the world of B2B Ecommerce. OroCommerce is an open source ecommerce platform that was built to solve the specific needs of B2B industry and to revolutionize Ecommerce.
There are many features you can use while using OroCommerce. The platform includes the most comprehensive set of B2B functions that come out-of-the-box. With remarkable enhancement in Business-To-Business ecommerce, OroCommerce brings a perfect solution to the table and provides flexibility in managing the Businesses (Self-Serve Model, Buyer-Seller Interaction, B2B Marketplace), Teams, Departments, Offices, Branches, etc.
In this tutorial, we will show you how to install OroCommerce on Cloudways PHP MySQL hosting. We will take a look at the installation process and some useful tips on getting started with OroCommerce B2B ecommerce platform. To install and run OroCommerce, your system should fulfill the following requirements:
- Apache 2.2.x or 2.4.x version/Nginx latest stable or mainline version
- PHP 5.6 or above
- PHP CLI
- MySQL 5.1 or above
- Composer (including asset plugin)
- PHP Timezone must be set (default date.timezone will not work)
Note: For other useful components and complete guide, see these System Requirements for OroCommerce.
Ready? Let’s begin!
PREPARE YOUR SERVER AND APPLICATION
1. Login/Signup to the Cloudways Platform
Login to your Cloudways account. If you are visiting Cloudways Platform for the first time, simply signup and get a free trial offer right now.
2. Select Application
Create a new server by selecting PHP Stack from the “Select your Application” drop-down. Then name your App, Server, & Project accordingly, and proceed to the next step.
3. Select Server
Select your favorite Cloud Provider.
4. Server Size and Location
Scale up your Server Size to 2GB.
Select your server Location. Don’t forget to keep the latency factor in mind. Tap the “Launch” button at the bottom of the page and wait for a while.
Here’s a GIF of all the steps explained above:
5. PHP Timezone
Once your server is launched successfully, change the PHP timezone to install OroCommerce (the default value is not supported by OroCommerce). Under “Server Management“, go to “Settings & Packages” and under “Basic” tab, you’ll see “PHP Timezone.”
Change the PHP timezone to your respective location.
1. SSH Terminal
After changing the PHP timezone, connect to your server using SSH Terminal using your Master Credentials.
2. Remove Files (public_html)
Now navigate to your public_html folder and remove all files using rm -Rf * command.
3. Clone Repository
Now in the same directory, i.e., public_html, run the following commands to install OroCommerce on your cloud server:
git clone https://github.com/orocommerce/orocommerce-application.git .
This command will clone the OroCommerce git repository. If you don’t want to use git, you can download a .zip file from the official OroCommerce website and extract the files to your public_html folder.
4. Composer Asset Plugin
After cloning the OroCommerce git repository, you can start the composer installation, but before doing that, you must install composer-asset-plugin with the following command:
composer global require fxp/composer-asset-plugin:1.2.2
5. Composer Install
After successful installation of composer-asset-plugin, run the following command to install OroCommerce:
composer install --prefer-dist
During the installation process, the composer will create app/config/parameters.yml file and will ask to input some configuration parameter including database credentials and other data that can be safely ignored for now. Keep in mind that you can change the parameters later.
You can find your database information in “Access Detail” under “Application Management.”
After configuring parameters, in a short time, you will see the composer has successfully finished installation of the necessary files.
6. Installation of OroCommerce
Now here is the final step; run the following command and install OroCommerce on cloud server using CLI:
php app/console oro:install --env=prod --timeout=0
After running the command above, it will check the System Requirements which we have covered above in this article. You can also observe several warnings that can be ignored.
If this step gives you an error, the OroCommerce installation will be canceled until all errors have been solved (except the Warning). You will need to run the installation command again after you have made the necessary changes.
If all system requirements are ready to go, OroCommerce will proceed with the database setup.
After database installation, you will get a prompt to enter the Administration information like Application URL, Organization name, Username, Email, First & Last name, Password, and lastly, you will be given an option to load sample data like products, categories, CMS, demo content, and images, etc.
After this, full reindex will occur, sample data, translations, and assets will be installed and cache will be cleared (which will take a while).
7. Access to OroCommerce Homepage
Finally, the installation is finished. Open your favorite web browser and access the OroCommerce homepage using the following URL:
You can get your Application URL from “Access Detail” in “Application Management.” This is how the OroCommerce homepage should look like:
There you have it! You are ready for some development on OroCommerce. If you have any issues in installing OroCommerce, feel free to comment below. And again, if you haven’t tried the Cloudways WordPress cloud hosting Platform yet, then you can start your FREE TRIAL right now and experience the ease at its best.
Create PHP websites without the worry of server management.
Deploy your PHP app on optimized PHP hosting servers.