Installing and upgrading help

Problem installation Moodle 2.4.1

This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.
Picture of Tonino Galia
Problem installation Moodle 2.4.1

Hello! My name's Tonino Galia and I'm new here!

I've installed moodle 2.4.1 following step by step the instructions but after having set-up the database and the directories, if I try to reach the server, the browser says:
"Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting."

What can I do? Thanks.

Average of ratings: -
Picture of Ken Task
Re: Problem installation Moodle 2.4.1
Group Particularly helpful Moodlers

Welcome, Tonino!

It would have helpful to know a few things ... like what operating system, what web server, and if remotely hosted (provider?) or not ... but the following is generic enough to be helpful (maybe).  Assumes apache web server and not remotely hosted.

Moodle requires the data directory to be readable and writable by 'apache' (user under which the web service runs) user and group.  If one were on Linux/CentOS, the fix is simple from the location where one can see the 'moodledata' directory via command line:

chown apache:apache moodledata -R

The moodledata directory *should not* be in web servers document root.  For CentOS/RHEL (Linux) again that is most often: /var/www/html/  Anything in there (if not restricted in some other fashion) can be viewed by anyone browsing to it.

The data directory most often in /var/www/ - which is accessible by apache user.  So the 'moodledata' directory would be:


in the config.php file.

'spirit of sharing', Ken

Average of ratings: -
Picture of Tonino Galia
Re: Problem installation Moodle 2.4.1

Hi Ken Task, thanks for your help!

So, I've windows 7 home premium, moodle files are located in a server "Aruba" in a directory "moodle". Moodle data directory is external. So I've my web domain: that is the root, in which i've moodle files and that is the data directory.
what can i do?



Average of ratings: -