星期四 四月 24, 2008

SAI Moodle on Solaris

I just made a special DVD for Moodle with SAI (Sun Academic Initiative) courses on Solaris. Here is the screenshot.


It is very easy to deploy. With this DVD, you just need do these step as the following.

Part 1. Setup Cool Stack (Apache, MySQL and PHP)

1. Create group and user for MySQL
# groupadd mysql
# useradd -G mysql mysql

2. pkgadd Cool Stack (Apache HTTP Server 2.2.3, MySQL 5.0.33 and PHP 5.2.0)
# pkgadd -d CSKamp_x86.pkg
Cool Stack will be installed to the folder of /opt/coolstack

3. Create "my.cnf" in /etc with the following content
[mysqld]
basedir=/opt/coolstack/mysql_32bit
datadir=/opt/coolstack/mysql_32bit/data

4. Run MySQL post-install, create database repository
# cd /opt/coolstack/mysql_32bit/bin
# ./mysql_install_db --defaults-file=/etc/my.cnf --user=mysql

5. Start MySQL
# cd /opt/coolstack/mysql_32bit/bin
# ./mysqld_safe --defaults-file=/etc/my.cnf --user=mysql

6. Change MySQL root password
# /opt/coolstack/mysql_32bit/bin/mysqladmin -u root password 'rootpassword'

7. Run MySQL client in command line
# /opt/coolstack/mysql_32bit/bin/mysql -p
password: rootpassword

8. Edit /opt/coolstack/apache2/conf/httpd.conf
# gedit /opt/coolstack/apache2/conf/httpd.conf

Change index page.
<IfModule dir_module>
    DirectoryIndex index.php
</IfModule>

9. Start Apache
#/opt/coolstack/apache2/bin/httpd

Part 2. Setup Moodle with SAI

1. Unzip moodledata.zip to /opt/coolstack/apache2/, and change authorization.
# chmod -R 777 moodledata
# chown -R noaccess moodledata

2. Unzip moodle.zip to /opt/coolstack/apache2/htdocs/, and change authorization.
# chmod -R 777 moodle
# chown -R noaccess moodle

3. Unzip mysql.zip to /opt/coolstack/mysql_32bit/data/, and change authorization.
# chmod -R 777 moodle
# chown -R noaccess moodle

4. Change setting in /opt/coolstack/apache2/htdocs/moodle/config.php
$CFG->wwwroot = 'http://YourServerIPAddress/moodle';

5. Moodle can import SAI courses with SCORM standard very easily.
If you meet errors, please change the filename "imsmanifest_\*\*\*.xml" to imsmanifest.xml in SAI course ZIP bundle.

If you also need this DVD, please mail me.


About

This is Chinese Functional CA Team Blog. Any suggestion is appreciated.

Search

Archives
« 四月 2014
星期日星期一星期二星期三星期四星期五星期六
  
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
   
       
今天