How to INSTALL MOODLE 4.0 on a cPanel server
Tutorial Hosting
I recently covered a topic on how to install Moodle on a Mac laptop if you haven’t seen that check out the link below in the description for this one I’d like to show you how to install the Moodle LMS on a cpanel server if you don’t know what that is then this video
Is probably not for you if you do know what cpanel is then you’re in exactly the right place my name is Chris Richter and before we go any further please check out the courses that I have on the Moodle LMS both for how to use the platform as a teacher how to create
Courses and also a little bit on programming as well for those that are Moodle administrators or that are PHP programmers would like to know a little bit more about how to get in and do things what the nuts and bolts are of the Moodle LMS but we’re going to look
At how to install Moodle on a cpanel server step by step it hopefully won’t take us too long to do that so first of all you need to log into your cpanel server once you’re in there obviously the very first step is to go and create
A sub domain we’re going to use the Moodle LMS definitely recommend you use a subdomain don’t use a folder underneath an existing domain because it will make your life so much harder so jump into your subdomains create a new subdomain we’ll call it my Moodle and put that into Ricochet and we’ll just
Create our subdomain now that we have our subdomain created all we need to do is go into our subdomain folder and upload Moodle so let’s jump into our folders into file manager and then into my my Moodle folder that I have and there’s currently nothing in there at all so all
I need to do is upload Moodle to this folder and unzip the Moodle platform before I do that though let’s go and download Moodle you can go straight to Google and search for Moodle download here we have our Moodle downloads We need Moodle 4.0 which is the version
We’re doing we have here the stable version or the latest official release it’s up to you which one you choose I’m going to go with the latest official update from Moodle and you can download either a tgz file or a zip file doesn’t really matter which one back in our
Control panel we need to choose upload make sure the maximum file size allows you to upload the size of the middle file we’re going to grab the zip or the tgz file and upload that to our server that’s now completed we can close that Tab and go back to our file manager
Select reload and you’ll find the Moodle 4.0 zip file is just there or compressed file is there we’re going to extract and extract it into the root folder so mymedle dot ricocheter community so we’ll just extract and close notice that it automatically put that into the Moodle folder in the Moodle
Compressed file is a folder called middle so we just need to move all of those files back up and I’m just going to delete this one first because we don’t need that again so we’ll get rid of that we’ll go into the Moodle folder I’ll
Select all and I’ll just move it all up one folder so just get rid of that move all of the files back up one level and we now have all of our folders files that we needed so that’s all we need to do for that part let’s close the file manager close our
Download page the next thing we need to do is create a database so to do that we go to mySQL database wizard I’m going to call the database my Moodle it automatically puts in the name in front of your database for you so the database name becomes all of that
We go to the next step I need a user name this is the user account that will connect to the database so I’m just going to call it rick share my Moodle just for the exercise this I’ll grab a password or generate a password I’ve now got a password in there I’m
Going to choose create user create that account select all privileges so that this user account so I’ve got user and the database name I would grab a copy of that now just so you’ve got that stored somewhere else because we’re going to use that user and the database name in
Just a moment we’re also going to use that password that we created just a moment ago as well so don’t lose that either choose make changes we are now back at the main screen of cpanel so what we’ve done so far is we have downloaded the zip file of Moodle we’ve created a
Subdomain we’ve uploaded the compressed file got everything ready to go so now it’s a case of starting the actual Moodle install process to do that all we need to do is go to the subdomain that we created in this case it is my moodle.r ricochet.com is the site that we created
Or the subdomain we created if we go straight to that in a web browser it then asks us to go through the install process so choose your language that bit’s fine we go next and there’s to confirm path so this is where it decides where it’s storing the data and I’m just
Going to I like to keep if I’ve got multiple Moodle service Moodle Builds on the same on the same server I create a new Moodle data folder so I’m just going to call this my Moodle middle data my Moodle just to keep it as a separate
Folder and go next now we need to know what type of SQL database we’re running on here in this case on cpanel mine is actually a mariahdb so I choose that first off rather than have to change it later if yours is MySQL then that’s in that’s fine if it’s
Native mysqli or if you’re using postgres as well you may want to use that instead it’s up to you mariahdb is the one I’m using on this server the next screen takes us to the settings that we need so we need a database name that’s our database name Ricochet
Underscore my Moodle a database user which in this case is actually the same name normally you probably wouldn’t do that but I do in this case um probably create a different user make it more unique the password we need to put in there for the database so you should
Have kept a record of that when you created that earlier we choose next it will confirm a little bit the copyright so we need to confirm that and we understand them it will then go through and tell us whether everything is correct if there’s any issues if there
Is any issues you may need to go into the PHP settings in cpanel and add some of these extensions in that may not exist I believe sodium might not have been in their initially I think there might have been a couple of others MB string probably was but may not have been so
You may need to go into the PHP settings and add some of those in so just go continue and that will run through the install process where it will go through and install all the database tables everything else needed for the database to run while it’s doing that just jump
Back into cpanel and scroll down to PHP for going to PHP version I can go to extensions and then I can go through the list for the current version of PHP that I’m using which you may have had to change or may not but you can go in there and
You can choose MB string which might have been missing sodium I think was missing when I first installed it on this server I think the majority of the others might have been there I know GD used to be missing but and you may need to add in the the database
Mysqli or whatever you’re using to read the the database as well so that’s where you can go in and add those settings those extensions to put them in for the current version of PHP that you’re using for this installation but let’s jump back to our installation and you can see
It’s installed all of these tables and it says success so we just go continue we need to create a username I’ll leave it as default admin for this exercise but you should change that to whatever your administrator username is you need to put in a password different than your
Database password this is the login password so get this correct and keep a copy of it for how you log into murder when you first log in you’ll need to put in your email address as well it’s a required field as well as the password which we’ll put in there fill
In the rest of the details if you have them and then choose update profile so we need to put a full site name in my Moodle my Moodle just as a single word this can be a full site name click save changes support email is required so
I’ll just put mine in there and save changes you can also register and if you read through the descriptions to why you might want to register for that your site with the Moodle listing as well you can do that I’m going to skip that at this stage so I’ll just skip
And that’s it that’s all I had to do to connect and set everything up now when I say that’s it there’s actually one last task we have to do and that is we need to set up the cron task that runs in the background in cpanel to make sure that
Any of the tasks that run as part of Moodle are set up so let’s go and do the Chrome go back into cpanel you’ll see in advance there’s an option called cron jobs in the cron jobs all you need to do is choose once per minute which is when it
Will be run so that’s an asterisk in each one of these the command that you will need to put in is based on where PHP lives on your server on a standard cpanel server it will be this location but it may be different for you in that
This is user local bin PHP home my server name so that’s not the URL but the actual server that you’re living on and India to check your cpanel settings to know what that is then the subdomain so in our case that was my moodle.r ricochet.com then admin CLI cron once we’ve done all
That we just select add new cron and that’s all we have to do and it should all be working now we’re going to test that to make sure the Chrome Works and then we’ll add a few all done to check that the cron is running all we have to
Do is go back into our moodless server go to site Administration select or type in tasks as our search let’s go right to the bottom and choose schedule tasks then all you need to do is just check that there is a last run date and that last run date is obviously the
Same as what the current date and time is or close to it and if if it says never all the way down there in that column that says last run if it says never then that means the cron still isn’t running and there is a
Problem with it you need to go back and fix that up back in that cron setting in cpanel otherwise as long as it’s showing you that there are some crons being run or Chrome tasks being run then everything’s good and you are right to get on with using your new Moodle server
So congratulations that’s awesome well done any issues make some comments down below if you need to happy to help out otherwise check out the courses that we have for you at courses.r ricochet.com.edu and I’ll see you in the next video
We'll walk you step by step through the process of preparing a cPanel subdomain and installing Moodle 4.0 including the database. ►► NEW COURSE – Using Moodle 4.0 (7+ hour video training) https://ricoshae.com.au/udemyref ►► Useful Links Disclosure: Some of the links below are to my websites and others are affiliate links If you have a If you make a purchase, I may receive a small commission at no additional cost to you. As an Amazon Associate I earn from qualifying purchases. Favorite Moodle Themes Edwiser REMUI – https://ricoshae.com.au/edwiser-239i Adaptable – https://moodle.org/plugins/theme_adaptable Moove – https://moodle.org/plugins/theme_moove Plugins Edwiser – Rapid Grader – https://ricoshae.com.au/kd8h Design software Affinity Designer 2 – https://affinity.serif.com/en-us/designer/ Affinity Photo 2 – https://affinity.serif.com/en – us/photo/ Screen Capture Software Screen Flow by Telestream – https://ricoshae.com.au/i7m4 Most Used Online Services Canva – Design Application – https://ricoshae.com.au/x6fa Free Images – Photos and Vector Images – https:/ /ricoshae.com.au/3ro0 Technology I use Laptop – MacBook Pro – https://ricoshae.com.au/a-esth Monitor – Dell U2720Q UltraSharp USB-C 27″ 4K UHD (3840 x 2160) Monitor – https://ricoshae.com.au/a-ccud Microphone – Rode NT USB – https://ricoshae.com.au/a-adkf Microphone – Shure MV7X XLR – https://ricoshae.com.au/a – bxcg Audio Interface – Claret 8 Pre – https://ricoshae.com.au/a-58d7 Camera – Sony a33600 – https://ricoshae.com.au/a-iaag Programming Tools Sublime Text – https://ricoshae . com.au/b8m3 Github – https://ricoshae.com.au/2oe5
#INSTALL #MOODLE #cPanel #server
https://i.ytimg.com/vi/bIpwRCH3uOw/hqdefault.jpg