Home > IT Notes

Moodle Installation Notes

  • Linux
    • Don't install the slackware PHP & MySQL distributions
    • MySQL
      • Get MySQL from: http://mysql.ausgamers.com/downloads/mysql/4.0.html
      • Issue these commands:
        groupadd mysql
        useradd -g mysql mysql
        cd /usr/local/
        gunzip -zxvf <MySQL gzipped tar file>
        ln -s <MySQL directory> mysql
        cd mysql
        scripts/mysql_install_db
        chown -R root /usr/local/mysql
        chown -R mysql /usr/local/mysql/data
        chgrp -R mysql /usr/local/mysql
        chown -R root /usr/local/mysql/bin
        
    • GD Graphics Library
    • PHP
      • Get PHP from: http://www.php.net/downloads.php
      • Unpack PHP distribution below /usr/src
      • Make a symlink to the PHP directory called php
      • cd php
      • Configure php for compilation like so:
        ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-apxs=/usr/sbin/apxs --with-xml --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-ttf --enable-gd-native-ttf --enable-magic-quotes --enable-sockets --enable-track-vars --enable-versioning --with-zlib
      • make
      • make install
      • cp php.ini-dist /usr/local/php/lib/php.ini
      • cp libs/libphp4.so /usr/libexec/ (Slackware 8)
      • In Apache's httpd.conf:
        • Unrem LoadModule php4_module modules/libphp4.so
        • Add at the end of the AddType section
          • AddType application/x-httpd-php .php .phtml .html
          • AddType application/x-httpd-php-source .phps
    • phpMyAdmin
    • Moodle
      • Get Moodle from http://moodle.org/download/
      • Unpack in a web accessible directory
      • Follow install instructions at http://<hostname>/<path>/moodle/doc/install.html

  • Windows
    • EasyPHP
      • Get EasyPHP from http://www.easyphp.org/telechargements.php3
      • Run executable distribution
      • Edit c:\program files\easyphp1-7\apache\php.ini
        • Unrem line for GD (to allow uploading Moodle user icons) extension=php_gd2.dll
        • Unrem line for Zip (to allow packing/unpacking of courses) extension=php_zip.dll
        • On PCs <P333 increase the maximum script execution time. Default is max_execution_time = 30
        • Enter correct upload file path. Suggest upload_tmp_dir = "C:\temp"
      • Run easyPHP from Start menu
      • phpMyAdmin is accessible from the easyPHP icon in the system tray
    • Moodle
      • Get Moodle from http://moodle.org/download/
      • Unpack in a web accessible directory
      • Follow install instructions at http://<hostname>/<path>/moodle/doc/install.html