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.
6. Create Moodle MySQL User.pfexec svcadm enable mysql
/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/moodledatapfexec chown webservd:webservd /var/apache2/2.2/moodledata
10. Follow the installation instructions at http://localhost/moodle. After 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.

Great stuff, Brian.
Posted by cvr on January 06, 2009 at 09:02 AM PST #
thanks
Posted by Sergio Uribe on August 18, 2009 at 06:32 PM PDT #
is Webstack in cluster?
thanks,
Posted by Sergio Uribe on August 18, 2009 at 06:41 PM PDT #
For this example, the Web Stack is not set up in a cluster. However, it can be clustered. What are you looking for?
Posted by Brian Overstreet on August 19, 2009 at 11:11 AM PDT #