Let me preface this post with the following facts: I'm Linux newbie (new career - ex-OpenVMS guy), and I've just begun my Moodle support career as well - I've taken over from somebody who quit the company. This is the 1st time I'm attempting to install/support Moodle
So please be gentle with me and please use small words in any replies
I'm having problems accessing a new pre-production Moodle install to finalize the installation of the application.I believe that the issue is with file permissions & ownerships, but as I said before, I'm a Linux neophyte, so I'm reaching out for some assistance.
The company has a working Moodle v1.9 install, and a test/pre-production Moodle 2.5.4+ installation - both on a creaky old VPS, but we need to move Moodle to a new physical server for a variety of reasons (mostly dealing with up-time). We tried getting our hosting company to move the working pre-production Moodle account to a new VPS instance on a new physical machine but that has not worked properly.
The NEW VPS Environment
CENTOS 6.5 x86_64 virtuozzo - vps
cPanel/WHMv.11.44.0 (build 19)
RAM:4Gb physical / 8GB burstable
Apache: v2.2.27
MySQL:v5.5.35-33.0
Php:v5.4.27
Moodle: v2.5.6
I'm trying to manually installing a Moodle v2.5.6 instance on this brand new VPS, so to that end I created a NON_REGISTERED domain on the new VPS and called the test domain moodle256.biz - just to see how the process is supposed to work. I know that we should be using a newer version of Moodle than 2.5.6, but we're going to stay on v2.5.6 only until this November - we just don't have time to deal with any more software issues that newer releases may bring to us - we figured that 2.5.6 is as far as we're willing to push the envelope at this time.
Using the v2.5 installation instructions from moodle.org, and instructions from the Moodle book, "Moodle 2 Administration”, by Alex Buchner, I executed the following steps:
1)Created the
unregistered domain/account on the VPS using cPanel. This account has 3GB of disk quota.
2)Copied the Moodle v2.5.6 .zip into the /public_html folder
3)Extracted the Moodle files into /public_html/moodle
4)Renamed the /moodle folder to /training (more for esthetic & clarity reasons than anything).
5)I logged into the VPS as root and executed the following commands:
[root@vps ~]# chown -R root /home/moodle256/public_html/training
[root@vps ~]# chmod -R 0755 /home/moodle256/public_html/training
6)Getting back into cPanel, I used the MySQL Databases tool to create a db, a user, and to associate the user to the db. This user account was given ALL privileges to the db.
7)Using cPanel File Manager. I created a folder called /home/moodle256/moodledata
8) Used Terminal to change the permissions on the moodledata folder[root@vps ~] # chmod -R 0777 /home/moodle256/moodledata
9) Changed the user of the moodledata folder to Apache
[root@vps ~] # chown -R apache /home/moodle256/moodledata
10) Change the group of the moodledata folder to 'nobody'
[root@vps ~] # chgrp -R nobody /home/moodle256/moodledata
Because the domain
associated with the cPanel account is unregistered (ie. a fake domain not paid-for at any domain registrar - and just used for testing), cPanel has a
workaround to allow users to get at the account on the server:
[ IP address][~accountname/moodledirectoryname/ ], so in this casethe URL to access the Moodle installer is xxx.xxx.xxx.xxx/~moodle256/training/
When I execute this URL the new server returns:
404-Not Found
"The server can not find the requested page:
xxx.xxx.xxx.xxx/~moodle256/training (port 80)
Yet if I use the same URL syntax for the 'fake' pre-production Moodle install on the old VPS - it works fine and brings us into the functioning environment.
I've looked at the files in the /home/moodle256/public_html/training/ folder and everything looks ok - the php.ini file that's supposed to guide one through the Moodle instantiation is there.
A this point I'm a bit stumped. I'm pretty sure this is a permissions issue but not sure how to resolve it, so I'm seeking help here.
Thanks for any/all assistance..