Moodle on Shared Hosting and Why You Need a VPS

If you ever needed to check out some online courses, take a test, or review some helpful guides—chances are you’ve already stumbled upon Moodle in some shape or form. The prime learning management system (LMS) solution takes the classroom from school right into your computer, allowing you to effectively teach and learn online.

But what does it take to host a Moodle project and take full advantage of its feats? And would shared hosting suffice for the job?

Our guide today addresses just that!

What is Moodle?

Moodle is an online learning platform developed by educators to provide a single integrated system to support learning. It is used in schools and universities around the world, as well as in corporations and other organizations.

How to Install Moodle on Shared Hosting

Shared hosting services come with a control panel where users can easily manage their account services. Quite often those include a one-click installer, which allows you to configure hundreds of different scripts with the click of a button. 

As Moodle is one of the top scripts in installers like Softaculous or Fantastico, its installation is fast and effortless. Here’s how the process goes:

Installing Moodle on Shared Hosting: Step by Step Guide  

Step 1: Create a New Account with a Shared Hosting Provider

The first step is to create an account with your shared hosting provider of choice. You will need to provide them with information about yourself, such as your name and email address. They will also ask you for payment details so they can charge your credit card for the service.

You should be able to access this page from within your web browser.

Step 2: Log in to Your Shared Hosting Account

Once you have created your account and paid for the service, you can log in using your shared hosting provider’s username and password. 

Step 3: Install the Moodle Software

You can either take the easy route and install Moodle using a one-click installer like Softaculous, or manually in just a few steps. 

1. Download the Moodle installation package from

2. Unzip the installation package to a directory on your server.

3. Create a new database for Moodle on your server.

4. Configure the Moodle installation by editing the config.php file.

5. Run the Moodle installation script by accessing install.php in a web browser.

6. Follow the prompts to complete the Moodle installation.

Step 4: Log in to Your New Moodle Website

Once you install Moodle on your shared hosting account, it should automatically start up and load into your web browser. Log in using the username and password you created during the Moodle installation

Click My Site from within the menu at the top right corner. This will take you directly to where everything is stored on your server.

How to Migrate Moodle from Localhost to Live Server

The following steps involve moving your Moodle website from one server to another. 

  1. Turn on maintenance mode.
    To turn on maintenance mode on your Moodle site, go to Site Administration > Server > Maintenance Mode. This prevents any further additions to the Moodle database. 
  1. Backup your Moodle database.
    There are many ways to perform backups, depending on your database. Consult with the documentation for your database for the specific instructions. 
  1. Copy moodledata.
    Copy the contents of your data directory to the new server. We recommend against using an FTP client, but if you are – the filedir folder must be in binary mode, or you risk system errors popping up. Make sure to give Read and Write access to the web server from the file permissions.
  1. Copy the Moodle code.
    Go to the Webroot Folder and copy the Moodle code to the new server. Again, make sure the web server has permission to access. 
  1. Update the URL of the new server.
    If the migration moves Moodle to a new URL, you need to change the $CFG → wwwroot in config.php to the new one.
    Also, check if any database connection settings need to be changed. For instance, see if the $CFG->moodledata path is still correct.
  1. Test the new site.
    Log back into your new site as an admin and verify if everything is working. 
  1. Update internal links.
    Now we need to fix the internal links stored in the database. To fix these, go to Main pageManaging a Moodle siteAdmin toolsSearch and Replace tool. This tool allows you to change the site URLs. 
    Enter the URL for your old and new server, which will fix the links in the database.
  1. Turn off maintenance mode.
    Once confident with the new site, remember to take it out of maintenance mode. 

Why Shared Hosting is Not the Right Choice for Moodle

1. No control over server resources: As you are sharing the same physical server with lots of other users, any changes would affect hundreds of accounts as well. This is why shared clients have no root access to make in-depth customizations, which might prevent them from installing add-ons with more specific requirements. 

2. Limited resources: All users on the same shared server have access to one and the same pool of resources – RAM, CPU, disk space, etc. So when one of the users start draining more and more server power – the system will allow them but at the cost of the performance for all others. Site slowdowns and even downtimes are not a rare sight for shared clients.

3. Sub-par support: The last thing a website owner needs is to have to deal with technical problems instead of their business development. But while many share providers offer support in some form, you might find yourself having to wait long hours over a ticket or even days via an email. More sophisticated server solutions either offer premium support or a dedicated account manager for your needs only.

4. Low security: When you’re running a website that deals with money – it’s essential to have sturdy security measures in place so your customers’ information is well-protected at all times. Unfortunately, the very nature of shared hosting allows for outside breaches even if your own account is secure enough. The hacker only needs to find one insecure account and then your entire server will be compromised. 

VPS: The Obvious Solution

Say you don’t want to spend that much extra on web hosting, but you also don’t want your Moodle experience to be sub-par. 

Virtual private servers are not that expensive nowadays. For the additional performance, security, and freedom they bring — it’s a no-brainer. 

ScalaHosting offers an impressive VPS setup for all types of clients. You get your own cloud server, dedicated resources, a tidy user dashboard, and sophisticated security detail. Plus, our technicians know Moodle inside and out. 

No more waiting around. No more nail-biting frustration. 

Want to know just how little extra this costs you? Contact the Scala team and find out!

Was this article helpful?

What’s your goal today?

1. Find the right Moodle Hosting solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lightning-fast

We guarantee to make your website load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Make your website lighting fast—or your money back
Slow websites lose visitors and sales. See how you can surf tsunami sized traffic spikes—or any traffic—with ease with ScalaHosting. Fill out the form, and we’ll be in touch!
Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.


Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2024

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain