Installing and upgrading help Data directory (/var/www/moodledata) cannot be created by the installer


I’m trying to deploy moodle into docker,

here is the stepped i followed

First, create a new network for the application and the database:

$ docker network create moodle

Then, start a new database process in an isolated container:

$ docker run --name mysql --network moodle -e MYSQL_ROOT_PASSWORD=password -d mysql

Finally, you can run this moodle image and link it to your mysql container:

$ docker run --name my-moodle --network moodle --link mysql:database -p 8080:80 -d aesr/moodle

Access it via http://localhost:8080 or http://host-ip:8080 in a browser.

But while installing moodle im getting
Data directory (/var/www/moodledata) cannot be created by the installer.


maybe because of Apache doesn’t have the proper permission

Can anyone please guide me step by step in order to fix it??
I’m running Docker on windows

Source: StackOverflow

Categorised as apache, docker, moodle


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us