Reference Docs:

  1. Red Hat Linux Moodle Installation Document
  2. RPM files about Oracle on Red Hat
  3. Oracle Database Instant Client
  4. Linking Oracle and Moodle
  5. Getting Moodle to talk to Oracle Database from the install screen
  6. Php configure with oci8

What you will need in order to get started:

  1. An Oracle Database with a UTF-8 character set and the following format for a tnsnames.ora (which is a result of creating the Database, so this may not be useful until later)
  1. A Red Hat Linux Server with command-line access

Open up terminal and connect to the server using SSH:

Install php and apache using the yum command from within a superuser account:

Install php addons (pear, gd, ldap using the yum command from within a superuser account):

Start Apache using the redhat start script:

Help Document for starting Apache in Red Hat.

Navigate to your web accessible directory:

Get The Latest version of Moodle using wget:

Unzip Moodle:

Make Directory Writable to allow the install script to create the config.php:

Create a directory for Moodle Data and then set permissions for it, making sure that this directort is not web accessible:

Get and Unzip the Oracle Instant Client which can be found here (I have loaded them onto my own ftp server for easier access) into the /var/instantclient/

Go into the Instant Client Directory that was created by unzipping and make a couple of symbolic links:

Use Pear to install oci8 support for PHP (the connection from PHP to Oracle)

In setting up the Oracle and Php Communication, open up the php.ini file in /etc and make the following modifications:

Important Note: Don't forget to enable this variable in your php.ini (or .htaccess) file:

(else, all your data will be escaped following MySQL rules, that are incorrect for Oracle)

 magic_quotes_sybase = On


In the Dynamic extensions section (just after the commented-out example entries) add:

Restart your Apache:

Go to the Moodle Installation directory via a browser

Enter in the following information for moodle directories:

In the database connect screen format the database information into the following format:

Keep on clicking next and okay and you should be able to get all the way through to this:

Set the Cron Process by navigating to the /etc directory and putting the command in the crontab (here is a crontab tutorial):