| 580 | | {{{ |
| 581 | | #! |
| 582 | | Then let's download the Moodle using Git repository. |
| 583 | | |
| 584 | | |
| 585 | | cd /opt |
| 586 | | sudo git clone git://git.moodle.org/moodle.git |
| 587 | | cd moodle |
| 588 | | |
| 589 | | |
| 590 | | Then get a list of stable releases from below command, |
| 591 | | |
| 592 | | |
| 593 | | sudo git branch -a |
| 594 | | |
| 595 | | |
| 596 | | Here we are selecting release MOODLE_400_STABLE, track and then check out the branch selected. |
| 597 | | |
| 598 | | |
| 599 | | sudo git branch --track MOODLE_310_STABLE origin/MOODLE_310_STABLE |
| 600 | | sudo git checkout MOODLE_310_STABLE |
| 601 | | |
| 602 | | |
| 603 | | }}} |
| 604 | | |
| 605 | | Copy the directory with the Moodle repository into the /var/www/lms.your_domain.com/public_html directory. Then, modify the new Moodle directory’s permissions to grant read, execute, and write access to any user. |
| | 580 | Copy the Moodle directory into the /var/www/lms.your_domain.com/public_html directory. Then, modify the new Moodle directory’s permissions to grant read, execute, and write access to any user. |