I really don't know why the directions page at:
The way the command reads, it creates a moodle directory in /opt/ and then shows git commands for setting of which version of moodle to track in /opt/moodle/ via git.
But that's what it says.
Then, in step 5, one copies the git aquired code in /opt/moodle
sudo cp -R /opt/moodle /var/www/html/That should be correct because document root for the default web site is in /var/www/html/
So what's in /var/www/html/ on your server?
What's in /var/www/html/moodle/?
There has to be a .git (note the 'dot' in front of git) directory in /var/www/html/moodle/
I see sudo commands ... which is sub for root user ... but I don't see any command in those directions that say to do this ... so do the following:
sudo chown www-data:www-data moodle -R
which changes the ownerships of the moodle directory and all code/subdirectories at that location to the user www-data (the first www-data in command above) and group www-data (the second www-data after the ':' in the command above)
And from that directory, what does
git branch -a
When you say it's not working ... how are you accessing the Moodle ... from workstation? with what URL?
URL should be http://IPaddress/moodle/
In Ubuntu the logs for apache are in /var/log/apache2/
To get a quick view of what might be going on:
Especially interested in the error.log.
Did you do this suggestion?
Suggestions: Enable Zend OpCache/Change Document Root
especially the part about 'changing document root'?
Am not saying do it .. .did you, the second time around, do it?
'spirit of sharing', Ken