Updated on Jan 23, 2025
Welcome to our Craft CMS tutorial section, where we will show you how to create a simple blogging website from scratch! As this whole tutorial is primarily for beginners, the website itself will be simple but focus on the fundamentals of working with Craft CMS. All techniques and steps we will show you will be applicable when creating more complex websites, of course, and can still serve as a foundation upon which to build.
Without further ado, let us begin with the basics.
The first thing we need to do is set up Craft CMS itself. As this is a beginner's tutorial for our hosting services, we will use the Composer version of the installation. It is quicker and more straightforward. You can check Craft's requirements in a previous section of our tutorial. All our services cover them already. With that said, the first thing we will do is create a database. You can check our database guide or follow along here.
This post includes:
To begin, log into your cPanel and go to Database Wizard.
Then, put in the name of your database and click Next Step.
In the next step, give the user a name and a password. The password generator can create a strong one for you. For simplicity's sake, we will give the user the same name as the database itself. When ready, click Create User.
Finally, tick All Privileges and then click Next Step.
With that, your database, user, and password are done. Remember to note down the name/user and password! Now, it is time to install Craft itself.
As we mentioned before, we will be using Composer to install Craft. The process is very straightforward, and the installer itself will guide you through it. To begin, go to the Terminal in your cPanel or log via SSH to your cPanel account.
Once you are in the terminal, all you need to do is run the Composer command. We are using this one for our tutorial.
composer create-project craftcms/craft fastcomet-craftcms
However, you can replace "fastcomet-craftcms" with anything you wish, as that will be your project's name and directory. We recommend you do that in the public_html directory (or any other that already has a domain pointed to it) so that you can easily access your website online. Then, the command will download Craft CMS to the directory and then prompt you to install it.
Type in "yes." Afterwards, follow the prompts. Here is what it will ask you.
This is how the setup looks in the terminal.
Once the installer is done, you will receive the appropriate green message. At this point, you should move the files from the directory the installer created one level up so they are in the directory for your domain.
To do that:
With that done, you can go to your website and add /web at the end and see the Craft CMS default page.
And there you have it! Craft CMS is installed and working. Go to the control panel and log in. You will find the dashboard. As you can see, the installation is straightforward. The challenging part comes when building the website itself. With that said, let us dive right into it.