Install moodle on Ubuntu 10.04
Mon, 2010-05-10 01:04
You can easily install moodle using the apt-get method in Ubuntu. You shall also need LAMP server on ubuntu.
$ sudo apt-get update
$ sudo apt-get install lamp-server^
$ sudo apt-get install moodle
- Database server software for Moodle: mysql-server -> follow remainder of instructions. Assuming the database is hosted on the same computer as the one Moodle is being installed upon, accept localhost for the options when prompted.
- Edit Moodle configuration options (if needed):
$ sudo gedit /etc/moodle/config.php
- Edit Moodle apache2 configuration file (if needed):
$ sudo gedit /etc/moodle/apache.conf
- Finish installation through the browser. (I recommend the "unattended" installation.)
- http://localhost/moodle/admin











after i folowe all steps i face this problem
Forbidden
You don't have permission to access /moodle/admin/ on this server.
Apache/2.2.14 (Ubuntu) Server at localhost Port
after that when i recive another error
which is
Error: Database connection failed.
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
so pls can you help me
Note:- This post has been edited by shtywi at Sat, 2010-08-28 22:18.
MAN FROM LIBYA
Hello Babbar.Ankit
While I appreciate the fact that you have made the effort to provide a guide here, there must be some underlying assumption that you have not included. I followed the recipe step-by-step, with a valid FQDN, and IP. I am not able to access the http://myfqdn/moodle/admin (You do not have permission...yada,yada,yada). The sole functional portion is what would be the "Front page", which only provides the basic Apache default of "It Works"
I really have no desire to (re)develop expertise in the quirks of Apache or file system permissions; all I want is a functional moodle server to which I can start inserting content. From the style of this article, I was assuming that someone like myself was the target audience. Perhaps an error on my part.
You should amend the content to either include the missing information, or make a note that the further file system or web server configuration required may be learned elsewhere.
regards
Ken
The whole point of Moodle is that users can access it over a network. The easiest way is to set up a URL for your server so that users can reach Moodle using the URL. Several steps are necessary.
$ sudo cp default moodlevirtualhost
<VirtualHost *:80>ServerAdmin webmaster@mymoodleserver.dyndns.org
#
DocumentRoot /usr/share/moodle/
ServerName mymoodleserver.dyndns.org
ServerAlias www.mymoodleserver.dyndns.org mymoodleserver.dyndns.org
#RewriteEngine On
#RewriteOptions inherit
</VirtualHost>
Notes: The Rewrite options are listed here only for forward compatibility with Apache rewrite rules. They are only used for multi-site installations and can, in general, remain commented out (with the #).
$CFG->wwwroot = 'http://mymoodleserver.dyndns.org/moodle';
Note:- This post has been edited by babbar.ankit at Mon, 2010-05-10 01:18.