show code js

2024年7月11日 星期四

Moodle

Get

  • git clone -b MOODLE_404_STABLE git://git.moodle.org/moodle.git on /pathto/moodle/
  • chown -R root /pathto/moodle/
  • chmod -R 0755 /pathto/moodle/
  • find /pathto/moodle/ -type f -exec chmod 0644 {} \;

MoodleData

  • mkdir /pathto/moodledata
  • chmod 0777 /pathto/moodledata
  • setfacl -R -m u:$(whoami):rwX /pathto/moodledata
  • setfacl -R -d -m u:$(whoami):rwX /pathto/moodledata

Security

  • goto /home/moodle/moodledata and create file of .htaccess
    order deny,allow
    deny from all

Install

  • open localhost/moodle to install
  • create moodle/config.php
    chmod -R 0644 moodle/config.php


沒有留言:

張貼留言