On this lesson you're going to learn how to install Craft Cms quickly on your own server.
It has been the best investment I made in my design journey so far. I would consider myself a novice but I honestly feel like I've gained a genuine professional insight into the process of creating a high-level website.
I'm an early adopter of the KreativePro Masterclass, and I love how well put together it is. Neftali takes you through each step of the process from paper sketches to marketing all with fun visuals & clear instructions!
Hey guys. All right, so this is exciting. We're now going to be able to install craft CMS. We're going to do a very fast craft CMS installation. All right. So there's multiple ways of installing craft. We can pull or fork the actual craft from their Github page or from directly from the website. Right? So if you go to craftcms.com and install Craft, it will take you to a documentation page where you can download craft manually by downloading a zip.
Or you can download it using composer and composer is a tool that you would use through the terminal, enable you to kind of install craft in a very quick way to your local server. But in this case, we don't want to install it on our computer. We want to test it out on an actual server, just so we have a quick insight of what crafts looks like.
If you're planning to install craft, you need to make sure that your server has the support for PHP 7.0+ MySQL, it has good memory allocated. Now, one thing you can do is you can use the Kraft server check, which is a GitHub, you can download this, uploaded over to your server and he will let you know if you have the requirements, or if you meet the requirements, to run craft.
In this case, we're going to be using Fortrabbit. So let's get started. I've already created my account with Fortrabbit. I'm going to go ahead and log in. So the first thing we want to do is create the app and we're going to call this "stream".
Proceed in this case, we're going with crafts CMS then will ask us which region we want to host or use, which server. In this case, we're going to just click on start a free trial. Great. So now that we have created our app, we'll see our dashboard with a series of predefined configurations, that the server has predefined for us, including my SQL database, SSH access, SFTP access.
If we want to use transmit or we can deploy content and code directly with Git. One thing I want to do here is use the SSH to access the server through and via the terminal. So if we can just copy this and access the terminal on our Mac. We will be able to just simply copy and paste that, we will use the same password that we used for, to access Fortrabbit.
So now we should be in the server, if we see these lines from Fortrabbit. We are ready to get started with crafts, if I go to the craft 3 documentation website, all I need to do is copy this same exact code, and what it will do is deploy all the files into our server so we can then install it.
So let's try "create", sorry let's do "composer", create-project craftcms/craft. So let's go ahead and wait for that to get installed. So while that is installing what we can do, we can take a look at the dashboard here and the server and access our ENV variables. Now these variables are what hold the access key points for the database.
So let's go ahead and access our server through our transfer protocol. All we have to do is copy the server over here, open up our transmit tool. And what we're going to do is we're going to create a new connection. So we're going to access this as StreamVR Fortrabbit, and we're going to click next. We add in the address from Fortrabbit and we add in the user. And for the password is the same password that we used to access our account. By now we should have the craft installation ready, and we should see this message on the terminal that it's ready to go. So let's go ahead and open up our server through our transmit.
And right away, we can see that Craft folder was installed correctly. So if we go ahead and remove these two .env files, ideally all these other full files have been added with permissions because of composer. So we don't really need to touch those yet. And let's click on delete.
Now that we've deleted those files, we should be able to access the installation but ideally, what we want to do is transfer or move over all these documents or folders over to the root. We can do that through the terminal or through transmit simply by dragging and dropping them into the root. Once we've actually moved all our folders and files outside. Into the HT docs we are ready to check it out on the preview.
If we click on the preview right away. We get this Service unavailable page. And that is because it hasn't been installed. All the files of crafts have been moved over to the server, but it has not been installed directly on the server, but by simply adding on the domain /admininstall.
It's going to take us to the installation screen of Craft, all we got to do in here is kind of go through terms and conditions. We click on, add our username in this case, I'm going to put in webmaster.
Let's click next. And notice how, because of those variables, the system, has already some predefined values we can in here, put the "StreamVR" and then click finish.
So let's go ahead and take on the next lesson where we can have a tour of craft CMS.
Access our premium community including bonus tutorials, project files & weekly resources.LIFETIME 💎 ACCESS