Until recently, the only choice for serious CMS projects was WordPress. There has been other content management systems and platforms, but none came close to the flexibility and performance of WordPress.
Craft is one of the recent platforms that pose themselves as WordPress alternates. While other fail to come up to the mark, Craft manages to outdo the competition by adopting a single-track focus on content management. By providing an excellent environment that cater to all areas of content management, Craft has managed to hold its own in the very competitive market of content management systems.
Powered by Yii, the well known (and respected) PHP framework, Craft CMS offers a scalable content management and presentation platform that is both robust and adaptable to all types of projects.
In this tutorial, I will discuss how you can install Craft on you Cloudways server. Let’s get the show on the road! If you don’t have an account on Cloudways yet, Sign Up now.
Step 1: Launch a New Server
Once you are Sign Up, launch a new server with PHP Stack application where we will install Craft CMS.
Wait for Cloudways to finish launching the server. Next, select the Application and go to the Application Settings.
Edit application folder name to craftcms and click on Save.
Step 2: Download Craft CMS
Now go to your server and launch SSH Terminal. Log in with your credentials.
Once logged in, go to the application directory through this command
Now unzip it by running following command.
Once unzipped, remove the zip file by running following command.
Now that Craft has been successfully downloaded, the next step is to install it
Step 3: Install Craft CMS on Cloud
In order to install Craft on Cloudways hosting for PHP MySQL, the first step is adding database information in config file. For that, run the following command in the terminal to open the db config file.
Once the file opens, press i to start editing the file. Go to the Craft Application panel on Cloudways console, copy the database credentials from the Access details and fill it in the open file.
Once you have filled all the information, press ESC, type wq and press Enter in order to save all the changes. Now head to the staging URL and add the following line
public/index.php/admin/install at the end of URL to open Craft installer. If you see the monkey page (see below), everything has been configured successfully.
Now let’s begin the installation by clicking the Begin button. On the next page, create the admin account and click on Next.
In the next screen, give the site a name, setup the site URL and click on Finish Up.
Craft will now start the installation.
Once the process finishes, go to the Craft CMS application staging URL.
If you see the above message, Craft has been successfully installed on your Cloudways server.
I hope that you have no issues in installing Craft CMS on your Cloudways server. If you have a question or wish to add to the conversation, please leave a comment.
Launch PHP websites without the worry of Server Management.
Pre-Installed Optimized Stack with Git, Composer & SSH
Ahmed was a PHP community expert at Cloudways - A Managed PHP Hosting Cloud Platform. He is a software engineer with extensive knowledge in PHP and SEO. He loves watching Game of Thrones is his free time. Follow Ahmed on Twitter to stay updated with his works. You can email him at email@example.com