Moodle in Education

I have been wanting to try out moodle for some time and hence set out setting up a desktop on oracle virtual machine and installed lampserver. These are the steps taken. This is not a reference guideline for running moodle on a production environment only for testing on a desktop server. Conclusion is it is great to use as a class room management software.

Moodle in Ubuntu 10.04 running a lamp-server^ on a desktop

sudo apt-get update
sudo apt-get install lamp-server^
type “http://localhost” in your browser
Should see the page “It works”
enter your mysql password when prompted (twice)
sudo gedit /var/www/testing.php
<?php phpinfo(); ?>
save file exit
sudo /etc/init.d/apache2 restart
type “http://localhost/testing.php”
Should see the php version page
Now install phpmyadmin
sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
enter your mysql password and enter the password for mysqlphp twice when prompted

Create folder for data of moodle
sudo mkdir /var/moodledata
sudo chmod 777 /var/www/moodledata

download moodle from “http://download.moodle.org/”
download file to home and copy to /var/www/moodle
sudo mv moodle-weekly-19.tgz /var/www/moodle
change directory to “cd /var/www/moodle”
When in dir moodle tar the zipped file
sudo tar -zxvf moodle-weekly-19.tgz
The above command is for ubuntu 10.04
To remove the zip file after extraxting  from /var/www
sudo rm -f moodle-weekly-19.tgz

In your browser

http://localhost/moodle

Now just answer questions and installation should take place smoothly
Note 1:
You may have to copy the config.php file and paste it into a new file and place it in /var/www/moodle
sudo gedit /var/www/moodle config.php
paste the contents shown on the page save and installation should continue.

Note2:
If the moodledata folder has not been created make sure you create it and change chmod  777
sudo chmod 777 /var/moodledata
Rest of the installation will go smoothly

Note 3:
Moodle unattended means the software will install without any prompts and will be quicker, if there are and problems it will prompt for action. Unattended is good

Assumption:
You can set up a lamp server with phpmyadmin

Reposted from www.vinstan.wordpress.com