CentOS 5.2 install

July 14, 2008 – 17:13

CentOS 5.2 install for Moodle. Pretty straightforward. It gets tricky when installing the pgsql database. This is how I do it:

install PostgreSQL database server with yum

Add a user to the system which you want to user as Moodle databaseuser

start the PostgreSQL service with: service postgresql start

Add PostrgreSQL and httpd to the required runlevels with:

  • chkconfig –level 2345 httpd on
  • chkconfig –level 2345 postrgresql on

su to postgres and create the postgres user mentioned before with: createuser username.

su to the databaseuser and pgsql -l should give you a database listing

edit /var/lib/pgsql/data/postgresql.conf and to start listening on port 5432

edit /var/lib/pgsql/data/pg_hba.conf to accept connections from localhost and your admin box.

install the following php packages:

  • mbstring
  • gd
  • xmlrpc

Sorry, comments for this entry are closed at this time.