-
Notifications
You must be signed in to change notification settings - Fork 24
Hosting Moodle Commands
Kristian edited this page Jun 10, 2022
·
3 revisions
Welcome to the moodle-local_message wiki!
Hosting Moodle Commands
sudo service --status-all
sudo cat /home/bitnami/bitnami_credentials
mysql -u root -penLPFSP1GdgJ
cd /opt
sudo git clone git://git.moodle.org/moodle.git
cd moodle
sudo git branch -a
sudo git branch --track MOODLE_311_STABLE origin/MOODLE_311_STABLE
sudo git checkout MOODLE_311_STABLE
sudo mkdir /var/moodledata
sudo chmod -R 777 /var/moodledata
sudo /opt/bitnami/apache2/bin/apachectl -M
sudo vim /opt/bitnami/apache2/conf/bitnami/bitnami.conf
cd /opt/bitnami/apache2/htdocs/
sudo mv /opt/moodle/* /home/bitnami/htdocs
sudo mv /opt/moodle/.* /home/bitnami/htdocs
cp config-dist.php config.php
*/1 * * * * sudo su daemon -s /bin/sh -c "/opt/bitnami/php/bin/php /home/bitnami/htdocs/admin/cli/cron.php > /dev/null"