Difference between revisions of "User:Ranjithraj/installers/moodle"

From FSMI WIKI
Jump to navigation Jump to search
(Created installation process for Moodle via composer)
 
Line 9: Line 9:
== Possible errors ==
== Possible errors ==
# PHP Dependencies
# PHP Dependencies
   sudo apt install php-zip-php-intl
   sudo apt install php-zip php-intl


# Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer
# Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer

Revision as of 09:38, 2 June 2021

Install via Composer

  • Create a project
 sudo composer create-project moodle/moodle:^'version.number' moodle-demo
  • Once installed, go to moodle root directory
 composer update --with-all-dependencies

Possible errors

  1. PHP Dependencies
 sudo apt install php-zip php-intl
  1. Parent directory (/var/www) is not writeable. Data directory (/var/www/moodledata) cannot be created by the installer
  • Manually create 'moodledata' folder
  mkdir /var/www/moodledata 
  chmod 0777 /var/www/moodledata
  • Give write permission to '/var/www' folder temporarily
 chmod 0777 /var/www/
 and then reset it to 755