I have installed Moodle 2.0.1 FILES on a CentOS5 server
with a web site domain
created with Parallels Plesk
Panel. On running <domain>/install.php, on page 2 Confirm paths
, I get some kind of permissions error I don't understand. I could sure use some advice.
At top of the page are the warnings:
: file_exists() [function.file-exists
]: open_basedir restriction in effect. File(/home/vhosts/prince2cbt.biz/moodledata) is not within the allowed path(s): (/var/www/vhosts/prince2cbt.biz/httpdocs:/tmp) in /home/vhosts/prince2cbt.biz/httpdocs/moodle/install.php
on line 305Warning
: is_writable() [function.is-writable
]: open_basedir restriction in effect. File(/home/vhosts/prince2cbt.biz) is not within the allowed path(s): (/var/www/vhosts/prince2cbt.biz/httpdocs:/tmp) in /home/vhosts/prince2cbt.biz/httpdocs/moodle/install.php
on line 309
(Question: where did the :/tmp come from, I wonder?)
... and at the bottom of the page:
Web address http://prince2cbt.biz/moodle
Moodle directory /home/vhosts/prince2cbt.biz/httpdocs/moodle
Data directory /home/vhosts/prince2cbt.biz/moodledata
Parent directory (/home/vhosts/prince2cbt.biz) is not writeable.
Data directory (/home/vhosts/prince2cbt.biz/moodledata) cannot be created by the installer.
Note: In Plesk, /home/ == /var/www/
My starting point was the guidelines at the very useful-looking doc.moodle.org/en/CentOS_Linux_installation,
(skipping the Zend server as PHP5.3.5 and MySQL
5.1.56 are already installed), setting the owners/permissions as per "Configuring file structure", except that Plesk points a domain name to /home/vhosts/<domainname>/httpdocs.
I have tried changing the owner for both the domain directory and moodle data directory from root to bizadmin (the Plesk ftp
username), and back, and I've tried combinations of group for apache, psaserv (the Plesk group), psacln (the Plesk client) and bizadmin - all with the same result: the domain directory is not writable and the data directory cannot be created.
Right now the domain directory is owned by root:psaserv and the folders & files (including /moodle/) is owned by root:psacln, all with full ugo rwx permissions, eg:
drwxrwxrwx 8 root psaserv 4096 Mar 8 15:17 httpdocs
drwxrwxrwx 41 root psacln 4096 Mar 8 00:36 moodle
(as suggested by http://www.orware.net/blog/item/correct-httpdocs-permissions.html)
If anyone can point me to the correct owner/group configuration to satify the triangular needs of Moodle 2.0, Parallels Plesk Panel and CentOS5, I would be most grateful