Root folder for a Moodle installation

Hello,

During its installation, Moodle (an LMS platform) asks me to change the root directory from /www to /www/public.

I have shared hosting (personal plan) and if I try to change the root, it is denied.

Is there a solution (or a workaround)?

Thanks!

Hello @danslesvolcans

No problem.

  • Create the subfolder public in /www
  • Using FILEZILLA in SFTP mode, drag all the contents of */www into /www/public
  • In the OVH manager, tab Mes sites modify the root folder to www/public

See the paragraph in my guide: E - Installation du logiciel FTP FILEZILLA

Here is a short guide I wrote that might provide clarification for a Installation complète et propre de votre Site.

Guide - Comprendre la Relation Domaine > Zone DNS > Hébergement > Dossier du site

See --> CMS - WordPress - Guide Installation chez OVH

Read and verify your situation by following attentively the sections: A to J valid for all CMS

Feel free to give me feedback: positive or negative.

Hello @danslesvolcans

I forgot to mention that my previous answer only applies if your Moodle tool performs its updates on the OVH hosting in FTP or SFTP mode.

Thank you very much!

I couldn't modify the root folder; it refuses me.
I worked around the issue by creating a subdomain that points to /www/public

Thanks again for your response.

Hello @danslesvolcans

This is an issue with OVH

Submit a ticket

I'll add:

Post this ticket number on the forum (in case a member of the OVH Team stops by)

then:

Call OVH customer support at +33 9 72 10 10 07.
Preferably between 8 a.m. and 9 a.m. in the morning, or around 3 p.m. when the wait is shorter.

Or on Twitter @ovh_support_fr or #OVHcloudsupport

Hi @danslesvolcans

Take a look at this doc:

https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/my-websites-modify-root-folder

If you installed Moodle via a one‑click module or have a Git integration, the system blocks modifications to the root folder to avoid breaking the association.

The subdomain solution avoids touching the main domain’s root and creates a new independent entry point :+1:

Let us know, cheers.
Sergio Turpín