Line 1: |
Line 1: |
− | ===Install mariadb 'alongside' mysql===
| + | ==Install mariadb 'alongside' mysql== |
− | ====Draft notes on mariadb installation====
| + | ===Draft notes on mariadb installation=== |
| <nowiki> | | <nowiki> |
| ##################################################################################### | | ##################################################################################### |
Line 60: |
Line 60: |
| </nowiki> | | </nowiki> |
| | | |
− | ====Backup & Restore====
| + | ===Backup & Restore=== |
| * (RequestedDeletion) Nice notes. Would it be worth it to look at the pre-backup and pre-restore events (And config db settings) so MariaDB databases are being backup up ? | | * (RequestedDeletion) Nice notes. Would it be worth it to look at the pre-backup and pre-restore events (And config db settings) so MariaDB databases are being backup up ? |
− | =====/etc/e-smith/events/actions/mariadb-dump-tables=====
| + | ====/etc/e-smith/events/actions/mariadb-dump-tables==== |
| * Based on /etc/e-smith/events/actions/mysql-dump-tables | | * Based on /etc/e-smith/events/actions/mysql-dump-tables |
| * "CONNECT" options separated out for easy modification and potential movement into db variables | | * "CONNECT" options separated out for easy modification and potential movement into db variables |
Line 81: |
Line 81: |
| mysqldump $CONNECT -x --add-drop-table -QB "$db" -r /home/e-smith/db/mariadb/"$db".dump || exit 1 | | mysqldump $CONNECT -x --add-drop-table -QB "$db" -r /home/e-smith/db/mariadb/"$db".dump || exit 1 |
| done</nowiki> | | done</nowiki> |
− | =====/etc/e-smith/events/actions/mariadb-load-tables=====
| + | ====/etc/e-smith/events/actions/mariadb-load-tables==== |
| * based on /etc/e-smith/events/actions/mysql-load-tables | | * based on /etc/e-smith/events/actions/mysql-load-tables |
| * doesn't actually load the dbs | | * doesn't actually load the dbs |
Line 104: |
Line 104: |
| done | | done |
| fi</nowiki> | | fi</nowiki> |
− | =====Automation=====
| + | ====Automation==== |
− | ======Backup======
| + | =====Backup===== |
| * Link mariadb-dump-tables into the pre-backup event | | * Link mariadb-dump-tables into the pre-backup event |
| * Dumped tables should be included in backups as they are stored under /home/e-smith | | * Dumped tables should be included in backups as they are stored under /home/e-smith |
| <nowiki>cd /etc/e-smith/events/pre-backup | | <nowiki>cd /etc/e-smith/events/pre-backup |
| ln -s ../actions/mariadb-dump-tables S20mariadb-dump-tables</nowiki> | | ln -s ../actions/mariadb-dump-tables S20mariadb-dump-tables</nowiki> |
− | ======Restore - NEEDS WORK======
| + | =====Restore - NEEDS WORK===== |
| The SME Server mysql restore is complicated by various factors that may not apply to a mariadb "alongside" installation. | | The SME Server mysql restore is complicated by various factors that may not apply to a mariadb "alongside" installation. |
| Here's what would need to be done to restore all mariadb databases: | | Here's what would need to be done to restore all mariadb databases: |
Line 119: |
Line 119: |
| mysql $CONNECT < <dbname>.dump</nowiki> | | mysql $CONNECT < <dbname>.dump</nowiki> |
| | | |
− | ===Install Moodle 2.6 using git===
| + | ==Install Moodle 2.6 using git== |
− | ====Requirements====
| + | ===Requirements=== |
| * Recommended minimum browser: recent Google Chrome, recent Mozilla Firefox, Safari 6, Internet Explorer 9 (IE 10 required for drag and drop of files from outside the browser into Moodle) | | * Recommended minimum browser: recent Google Chrome, recent Mozilla Firefox, Safari 6, Internet Explorer 9 (IE 10 required for drag and drop of files from outside the browser into Moodle) |
| * Moodle upgrade: Moodle 2.2 or later (if upgrading from earlier versions, you must upgrade to 2.2.11 as a first step) | | * Moodle upgrade: Moodle 2.2 or later (if upgrading from earlier versions, you must upgrade to 2.2.11 as a first step) |
Line 127: |
Line 127: |
| * New recommended PHP extensions: <span style="color:green">zlib</span>, <span style="color:red;">OPcache</span> | | * New recommended PHP extensions: <span style="color:green">zlib</span>, <span style="color:red;">OPcache</span> |
| | | |
− | =====DB Version=====
| + | ====DB Version==== |
| SME Server 8.x comes with MySQL v5.0.95. In order to install Moodle without risking destabilizing a SME server by changing the MySQL version, you can install MariaDB 5.3.54 ''alongside'' MySql. | | SME Server 8.x comes with MySQL v5.0.95. In order to install Moodle without risking destabilizing a SME server by changing the MySQL version, you can install MariaDB 5.3.54 ''alongside'' MySql. |
| | | |
− | =====OPcache=====
| + | ====OPcache==== |
| Zend OPcache is built-in to PHP 5.5, and can be compiled to work with PHP 5.3.3. | | Zend OPcache is built-in to PHP 5.5, and can be compiled to work with PHP 5.3.3. |
| | | |
Line 137: |
Line 137: |
| I believe this will make Moodle run more slowly than it would *with* OPcache. | | I believe this will make Moodle run more slowly than it would *with* OPcache. |
| | | |
− | ====Installation====
| + | ===Installation=== |
− | =====Prepare your server=====
| + | ====Prepare your server==== |
| ======Install useful php modules====== | | ======Install useful php modules====== |
| * During installation, Moodle will request php-soap, php-xmlrpc and php-intl. These are all available from the 'smeaddons' repository, and can be installed using: | | * During installation, Moodle will request php-soap, php-xmlrpc and php-intl. These are all available from the 'smeaddons' repository, and can be installed using: |
| yum install php-soap php-xmlrpc php-intl | | yum install php-soap php-xmlrpc php-intl |
| | | |
− | ======Create an ibay======
| + | =====Create an ibay===== |
| * Create an ibay named 'moodle' in server-manager | | * Create an ibay named 'moodle' in server-manager |
| * Customize some of the settings on the new moodle ibay | | * Customize some of the settings on the new moodle ibay |
Line 161: |
Line 161: |
| #</nowiki> | | #</nowiki> |
| | | |
− | ======Create a database======
| + | =====Create a database===== |
| * Install Mariadb ''alongside'' mysql | | * Install Mariadb ''alongside'' mysql |
| * create a mariadb database for moodle | | * create a mariadb database for moodle |
Line 182: |
Line 182: |
| quit"</nowiki> | | quit"</nowiki> |
| | | |
− | =====Install Moodle=====
| + | ====Install Moodle==== |
− | ======Download & Checkout using git======
| + | =====Download & Checkout using git===== |
| <nowiki> | | <nowiki> |
| # | | # |
Line 201: |
Line 201: |
| signal-event ibay-modify $IBAY | | signal-event ibay-modify $IBAY |
| </nowiki> | | </nowiki> |
− | ======Run the installer======
| + | |
| + | =====Run the installer===== |
| <nowiki># | | <nowiki># |
| # run the command line installer | | # run the command line installer |
Line 211: |
Line 212: |
| sudo -u www /usr/bin/php install.php | | sudo -u www /usr/bin/php install.php |
| </nowiki> | | </nowiki> |
− | ======Correct database settings if necessary======
| + | |
| + | =====Correct database settings if necessary===== |
| If you were not prompted for database socket, port, or other connection settings during the command line setup, you will need to correct the settings manually. | | If you were not prompted for database socket, port, or other connection settings during the command line setup, you will need to correct the settings manually. |
| | | |
Line 222: |
Line 224: |
| sed -i s/dbpass.*/dbpass\ \ \ \ \=\ \'$DBPASS\'\;/ /home/e-smith/files/ibays/moodle/html/config.php</nowiki> | | sed -i s/dbpass.*/dbpass\ \ \ \ \=\ \'$DBPASS\'\;/ /home/e-smith/files/ibays/moodle/html/config.php</nowiki> |
| | | |
− | ===Notes on check_earlytalker===
| + | ==Notes on check_earlytalker== |
| Why did you remove the Request_for_deletion template on the check_earlytalker page? AFAIK it is obsolete and should be deleted according to http://forums.contribs.org/index.php/topic,46234.msg226418.html#msg226418 - <small>— [[User:Cactus|Cactus]] ([[User talk:Cactus|talk]] | [[Special:Contributions/Cactus|contribs]]) </small> 07:05, 16 February 2012 (MST) | | Why did you remove the Request_for_deletion template on the check_earlytalker page? AFAIK it is obsolete and should be deleted according to http://forums.contribs.org/index.php/topic,46234.msg226418.html#msg226418 - <small>— [[User:Cactus|Cactus]] ([[User talk:Cactus|talk]] | [[Special:Contributions/Cactus|contribs]]) </small> 07:05, 16 February 2012 (MST) |
| | | |