Backup of moodle installation folder

Re: Backup of moodle installation folder

by Thorsten Bartel -
Number of replies: 0
Picture of Core developers
Hello Omid,

ideally, the moodle installation folder is not changed by site activity on production sites.
It *is* possible to change files within the moodle installation folder by upgrading / installing / uninstalling plugins.

These plugin activities *can* be performed via the moodle administration panel (GUI), but on production sites they *should* not.
To ensure that site activity cannot alter the installation folder, perform the following steps (on Linux systems):

1. Make "root" the owner of the folder and all subfolders:
sudo chown -R root:root /var/www/html/moodle
(installation path may vary, adjust accordingly)

2. Make the folder read- and executable by other users:
sudo chmod -R 755 /var/www/html/moodle
(again, adjust path according to your environment)

For plugin maintenance you will then need to modify the files on the server manually. Especially with multiple site admins this is much more secure and robust.

Cheers
Thorsten
Average of ratings: Useful (1)