![]() ![]() If I were to change the favicon.ico file you would just add "favicon.ico" to the exclude file. You would add additional entries, 1 per line, for each plug-in or file you might have changed. An example entry would be the certificate mod located in /opt/moodle/mod/certificate so within the exclude file you want to add "/mod/certificate" below the last comments. Within that file you want to tell git which files/folders to exclude when it pulls down the updates when you run your next "sudo git pull". After you have added the plug-in and any other changes you might have made you will need to edit the file located in /opt/moodle/.git/info/exclude. For example, you want to make some changes or add some plug-ins, you would download the plugin and copy it to your local moodle repository. Having your local repository outside of the webroot, like we have in /opt, you will be able to prepare and stage your upgrades in a more efficient manner. Since we setup a local repository in the previous step, you will copy it to your webroot after any updates and making changes. Sudo git checkout MOODLE_400_STABLE Step 5: Copy local repository to /var/www/html/ sudo cp -R /opt/moodle /var/www/html/ sudo mkdir /var/moodledata sudo chown -R www-data /var/moodledata sudo chmod -R 777 /var/moodledata sudo chmod -R 0755 /var/www/html/moodle Sudo git branch -track MOODLE_400_STABLE origin/MOODLE_400_STABLEįinally, Check out the Moodle version specified Sudo git clone git:///moodle.gitĬhange directory into the downloaded Moodle folder ![]() Within Step 5 there is a little more detail on why we put the moodle core application code in the /opt directory. By using git it will much easier down the road to update the moodle core application. Git is what is called a "version control system".Setup your local repository and download Moodle, We will use /opt for this installation. Sudo apt install git Step 4: Download Moodle We will be using Git to install/update the Moodle Core Application Restart Apache so that the modules are loaded correctly Step 3: Install Additional Software sudo apt install graphviz aspell ghostscript clamav php7.4-pspell php7.4-curl php7.4-gd php7.4-intl php7.4-mysql php7.4-xml php7.4-xmlrpc php7.4-ldap php7.4-zip php7.4-soap php7.4-mbstring Run 'sudo mysql_secure_installation' to set the root password for mysql - please, please my dear friends, WRITE IT DOWN and spare yourself some grief, you will need it in step 6. See for the progress for "Prepare Moodle for PHP 8.0) (Ubuntu 20.04 now installs PHP8 by default, so be careful to specify the PHP version number or you will get a "line 10602" error. Sudo apt install apache2 mysql-client mysql-server php7.4 libapache2-mod-php Open up Terminal and install the following Note: Moodle 3.0.1 introduced support for PHP 7.0 and we will be using PHP 7.4 in this tutorial In the below tutorial we will be using the term "sudo" which stands for "super user do" before most of the commands. ![]()
0 Comments
Leave a Reply. |