Installing Moodle to a Craft CMS server

Eleanor: 20 May 2022

I was wondering if anyone had any experience in installing Moodle to a server that already had a CraftCMS website installed onto it? I've followed the instructions on the Moodle Installation Guide ( (I put the Moodle files in the CraftCMS template folder) but when I get to the part where I go to http://domain/moodle to install it I get a 404 error. If I go to http://domain/moodle/install.php I get the install file but it doesn't work, I just get a string of text like the PHP isn't executing. I can't find any similar issue's on Moodle's forums so I think that this will have something to do with craft not allowing the PHP?

Santiago: 20 May 2022

What Damon ( said is correct. You'll need to modify Craft's public .htaccess file so that all requests to Moodle URIs go to it's public index.php file and requests to Craft URIs go to Craft's public index.php file.

Alternatively, you could keep them as two separate installations, which simplifies things.