Showing posts from April, 2009

Installing Moodle on Centos 5

I assume that both apache(http) and mysql(database) are on the same server. This is not needed.

1 - Go to and download latest moodle*.tgz.
cd /tmp
wget #Do not use this link. Get latest file from

2 - As root:
yum install php php-mysql httpd mysqlclient10 mysql-server php-gd php-mbstring php-xmlrpc

3 - If your mysql installation is fresh, you will need to assign a root password to it.

service mysqld start

/usr/bin/mysqladmin -u root password 'newpassword'

may assign newpassword as the new mysql root password. Replace newpassword to a safer password.

4 - Start services and be sure that it will be started automatically.
service httpd start
service mysqld start
chkconfig httpd on
chkconfig mysqld on

5 - Create a user moodle with a good password that has all privileges on the table moodle. I suggest that you download and install PhpMyAdmin to do it. Try the latest 2.xx.x.x version as it will work on Centos …