Installing Moodle in home

Installing Moodle in home

Alexandro Colorado發表於
Number of replies: 3

i have the Apache's users module which means I host web applications on my public_html folder in home. (using GNU/Linux). 

I host many web applications like wordpress, drupal, framework based applications like Django, PHP-Symphony etc.

Moodle has the pecularity that needs a different alternative path for the moodledata

However in my system that would be my /home/user/ path which I dont want to have the same permissions as public_html (be writtable by apache). 

I have tried adding a different layer of folders like /home/user/public_html/moodle/moodle/

However it seems moodle force you into having moodledata outside of the server path. Any advice?

評比平均分數: -
In reply to Alexandro Colorado

Re: Installing Moodle in home

Douglas Broad發表於

If I read your post correctly, it was probably a mistake to put your Apache server in your user path.  I put mine in c:\xammp.  In any case, put moodledata in the same folder as your server, not in the htdocs folder.  The moodledata folder is not directly accessible by the public(AFAIK) so no security holes there.  It is used by Moodle itself (as a resource area I believe).  

In reply to Douglas Broad

Re: Installing Moodle in home

Alexandro Colorado發表於

Maybe I should have started with that, this is my laptop, running linux. The way user module works in apache is that it gives you a user-htdoc folder called public_html. 

Issue is that this folder has apache-writable permissions while the rest of my path is my home. 

The problem is the installation script get stuck because it can't write on home and it doesnt allow me to put moodledata on public_html.

In reply to Alexandro Colorado

Re: Installing Moodle in home

Visvanath Ratnaweera發表於
Particularly helpful Moodlers的相片 Translators的相片
Hi Alexandro

Any particular reason, if this is your laptop, not installing Moodle in Apache DocumentRoot and moodledata outside of it? Under Debian and Debian-based distributions, that would mean:
DocumentRoot = /var/www
Moodle source in /var/www/moodle
$CFG->wwwroot = 'http://localhost/moodle';
$CFG->dataroot = '/var/www/moodledata';

See http://www.syndrega.ch/?p=38.

If you have to install in /home, this should work:
user-htdoc directory = /home/you/public_html
Moodle source in /home/you/public_html/moodle
$CFG->wwwroot = 'http://localhost/~you/moodle';
$CFG->dataroot = '/home/you/moodledata';
provided that the Apache server has write permissions on dataroot.