Changes

Jump to navigation Jump to search
1,663 bytes added ,  02:23, 5 December 2013
Line 57: Line 57:  
# Now the example version check from the howto works:     
 
# Now the example version check from the howto works:     
 
mysql -e "SELECT VERSION();" --socket=/opt/mariadb-data/mariadb.sock
 
mysql -e "SELECT VERSION();" --socket=/opt/mariadb-data/mariadb.sock
 +
</nowiki>
 +
 +
===Install Moodle using git===
 +
<nowiki>
 +
###
 +
# TODO
 +
###
 +
yum install php-soap --enablerepo=smedev
 +
 +
#
 +
# http://wiki.contribs.org/Moodle
 +
#
 +
# Manual Process
 +
 +
    # create ibay 'moodle'
 +
 +
    # fix ibay settings & permissions
 +
 +
IBAY=moodle
 +
/sbin/e-smith/db accounts setprop $IBAY \
 +
FollowSymLinks enabled \
 +
CgiBin enabled \
 +
AllowOverride All \
 +
Group www \
 +
PublicAccess global \
 +
PHPBaseDir "/home/e-smith/files/ibays/$IBAY/:/tmp/" \
 +
UserAccess wr-group-rd-everyone
 +
/sbin/e-smith/signal-event remoteaccess-update
 +
#
 +
mkdir /home/e-smith/files/ibays/$IBAY/moodledata
 +
chown www:www /home/e-smith/files/ibays/$IBAY/moodledata
 +
#
 +
# Install [[Mariadb]] "alongside"
 +
# create mariadb database
 +
#
 +
mysql --socket=/opt/mariadb-data/mariadb.sock
 +
create database moodle;
 +
grant all privileges on moodle.* to moodle@localhost identified by '35W0SujwtMUmLFg7qkKi' with grant option;
 +
#
 +
 +
    #
 +
 +
    # Download moodle using git
 +
 +
    # http://docs.moodle.org/26/en/Git_for_Administrators#Obtaining_the_code_from_Git
 +
 +
    #
 +
 +
cd /home/e-smith/files/ibays/$IBAY
 +
git clone git://git.moodle.org/moodle.git
 +
cd moodle
 +
git branch -a
 +
git branch --track MOODLE_26_STABLE origin/MOODLE_26_STABLE
 +
git checkout MOODLE_26_STABLE
 +
#
 +
# rename git folder as html and correct ownership
 +
#
 +
cd /home/e-smith/files/ibays/$IBAY
 +
mv html html.org
 +
mv moodle html
 +
signal-event ibay-modify $IBAY
 +
#
 +
# run the command line installer
 +
# if prompted, set:
 +
    # mysql port: 3307
 +
    # mysql socket: /opt/mariadb-data/mariadb.sock
 +
    #
 +
    # if not prompted, edit /home/e-smith/files/ibays/moodle/html/config.php manually
 +
    #
 +
cd /home/e-smith/files/ibays/$IBAY/html/admin/cli
 +
sudo -u www /usr/bin/php install.php
 
</nowiki>
 
</nowiki>
  

Navigation menu