Monday Jan 05, 2009

Installing Moodle on OpenSolaris

This guide shows how to install the open-source Course Management System (CMS) Moodle on OpenSolaris using the Sun Web Stack.  Before we begin, install the Sun Web Stack, pfexec pkg install amp.


1.  Get the Moodle source.  Check moodle.org for the latest release.

/usr/sfw/bin/wget http://download.moodle.org/stable19/moodle-weekly-19.tgz

2.  Decompress the Moodle source to the Apache Document Root.

pfexec /usr/sfw/bin/gtar xvfz moodle-weekly-19.tgz -C /var/apache2/2.2/htdocs

3. Update the owner.

pfexec chown -R webservd:webservd /var/apache2/2.2/htdocs/moodle
 
  

4.  Set MySQL password if not set

/usr/mysql/bin/mysqladmin -u root changeme

5. Start MySQL.

pfexec svcadm enable mysql

6. Create Moodle MySQL User.
/usr/mysql/bin -uroot -pchangeme
mysql> create user 'moodle'@'localhost' identified by 'moodle';
mysql> grant all privileges on '\*.\* to 'moodle'@'localhost' identified by 'moodle' with grant option;
mysql> create database moodle;

7.  Update the  /etc/php/5.2/php.ini file using the PHP Settings Section in the MoodleDocs.


8.  Start Apache.

pfexec svcadm enable apache22
 
    

9.  Create data directory.

pfexec mkdir /var/apache2/2.2/moodledata
pfexec chown webservd:webservd /var/apache2/2.2/moodledata


10.  Follow the installation instructions at http://localhost/moodleAfter inputting values specific to your installation, the database should be created successfully by Moodle.  After clicking continue for several screens, you should be able to setup the administrator account.


Moodle Running on OpenSolaris

 
    
 
    
 
    
 
    


About

Brian Overstreet

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today