Currently run Moodle on a WAMP server and it works well, but there are a couple of modules (particularly the one the allows access to students home folders through Moodle) that we'd like to use that require Moodle to be running on a LAMP box.
So thought I'd have a play with setting up a Moodle install on an Ubuntu vm. Got Ubuntu Server install (version 9. something), told it set up the system as a LAMP server when it asked. Told it that the webpages served by Apache should be seen by other PCs not just the localhost
Installed Moodle using sudo apt-get install moodle and it appeared to install that fine.
I can browse to //localhost/ on the Ubuntu server and see the IT WORKS! page and I can browse to the IP from other PCs and see the IT WORKS! page so Apache seems to be working.
I can't however see anything other than a blank page when browsing to //localhost/moodle or //localhost/moodle/admin (don't get an error page 404 etc, just a blank page)
I installed GNOME to have a look around the directory and found the Moodle files and been installed in USR/SHARE not VAR/WWW/MOODLE where I would have expected them so created a folder there, copied the moodle files to it and CHMOD 777 the VAR/WWW/MOODLE folder.
As this is my first time with Linux I'm a bit stuck, and not sure what I've done wrong. PHP seems to be installed, don't know about MySQL, but it seems odd that I can't open //localhost/moodle/index.php at all from the browser.
Can anyone with any experience of setting up Moodle on Ubuntu help please?
I've deleted the copy of the moodle folder i put into /var/www
and run the code to link usr/share/moodle to /var/www/moodle as suggested
I still get the same blank screen.
Is it odd that I get a blank screen. If I try to browse to a file that isn't there e.g. //localhost/moodle/nothere.php I get Not Found error 'requested URL //localhost/moodle/nothere.php was not found on this server'
but if i browse to a file in the moodle directory that should be there e.g. //localhost/moodle/index.php I just get a blank screen, but the index.html file in the www/var directory can be viewed properly. I'm wondering if PHP isn't doing its thing?
Check you have carried out any configuration steps listed in /usr/share/doc/moodle/README.Debian. The Apache logs are /var/log/apache2/access.log and /var/log/apache2/error.log by default, check them. I suspect you don't have a handler registered for .php files, can you access one by name at http://localhost/moodle/...?
Done the config steps in the readme except for commenting out the skip-network bit in the mysql file although I think it is now a bind to 127.0.0.1 comment not skip-network. Shouldn't make any difference if doing it trying to browse from the LAMP server anyway.
I think it must be the php handler not registered. The only error in the logs are that it can't find a favicon.ico in var/www
Browsing directly to a php file e.g localhost/moodle/index.php just gives a blank screen. How would I register the handler for php?
Sorry if not making good sense as currently on train and can't remember exact things that server was showing!