Moodle runs on any web server that supports the PHP programming language and a database. It works best when running on the Apache web server with a MySQL database.
The Moodle learning management system resides in three places on your web hosting:
The three parts of Moodle, the application, data directory, and database, work together to create your learning site. Knowing how the three parts work together is helpful when upgrading, troubleshooting, and moving your Moodle site between servers.