Video Transcript — Installing Moodle 5.1.1 on Ubuntu 24.04
Source: Transcript of How to install Moodle on Ubuntu 24.04 (Abstract Programmer, n.d.)
looking to set up your very own learning management system whether you're a solo educator or part of a large organization Moodle is here to revolutionize your online learning experience. in this quick guide I'm walking you through how to install Moodle on Ubuntu server. by the end of this video you'll have your own Moodle site up and ready to go fast and easy.
okay first up connect to your Ubuntu server using SSH. don't worry all the commands I mentioned are in the blog post linked below so no need to memorize anything just copy and paste them when you're ready. once connected update your server's package list and upgrade all the installed software to make sure it's up to date.
next we need to set up moodle's environment. it needs a web server a database and PHP plus a few extensions. one single command will install everything you need just head to the blog post copy that command and paste it into your terminal done. great let's move on.
all right now it's time to grab Moodle itself. download the Moodle installation directly to your server. once again the exact command is in the blog post.
all right now that you've downloaded Moodle the next step is to move it into the right place. specifically we're moving it to the web server's root directory. copy the command from the blog post paste it into your terminal and hit enter. after that navigate to the directory where you just placed Moodle and extract the files. again the exact commands are in the blog post super easy.
now let's set up the Moodle data directory. this is a special folder where Moodle stores uploaded files temporary data and more. first you'll navigate One Directory up to the www folder. next create a folder called Moodle data. this is where all the magic happens happens. finally Grant the proper permissions to the web server user. this ensures Moodle can read and write files as needed.
now it's time to get your database ready for Moodle. first log into MySQL as the root user. once inside you'll create a new database specifically for Moodle. make sure to set it up with the proper character set for compatibility. next you'll create a user for Moodle and assign it the necessary privileges. replace the placeholder password with something secure you want this to stay locked down. finally save your changes by flushing the Privileges and exiting myql and just like that your database is ready to roll.
now comes the exciting part finishing the setup in your browser. open your favorite browser and head to your server's Moodle URL. follow the setup wizard step by step. you'll select your language configure the data directory and plug in the database details from step five. it's intuitive but take your time to double check everything.
all right let's tackle a couple of common setup hurdles. first if Moodle tells you it can't write the config.php file no worries. navigate to the Moodle directory using the command from the blog post then manually create the file with Nano. copy the configuration provided by Moodle and save it just hit crl s to save andr X to exit. done awesome. next restart apachi to apply the changes. again there's a command for that in the blog post. copy paste and you're good to go.
now if Moodle complains about Max input vars being too low you'll need to update your PHP configuration. open the php.ini file in Nano and search for Max input vars. remove the semicolon at the beginning and set the value to 5,000. save your changes exit Nano and restart Apache once more.
okay you're in the home stretch now. refresh the Moodle setup page in your browser and continue with the installation wizard. Moodle is now installed on the server. the process will take 2 to 3 minutes. here's where you'll create your admin account set a username a strong password and an email address. then name your Moodle site. once the installation wraps up Moodle will guide you through some additional settings like the support email. fill those in save your changes and you're all set.
congratulations your Moodle site is officially live and ready to go. now you can start customizing your site creating courses and welcoming your learners.