bobopinna / moodle-enrol_autoenrol

Auto enrol plugin for Moodle. Forked from markward/enrol_autoenrol and reorganised for direct cloning in Moodle tree
13 stars 22 forks source link

Write Access Failed during Install #43

Closed shivanraptor closed 1 year ago

shivanraptor commented 1 year ago

I'm trying to install the plugin in Moodle 4.0.4 via uploading ZIP file

Validating enrol_autoenrol ... Error
  [Error] Write access check [/var/www/html/enrol] 
Installation aborted due to validation failure

But the folder mentioned is already there, having 775 as folder permission, with the user group myadminacc:apache

OS: RHEL8 Apache

shivanraptor commented 1 year ago

After setting setenforce Permissive and setting the folder to 777, the folder can be written, however, the following error will be shown:

There is a request to install plugin AutoEnrol (enrol_autoenrol) version 2022062000 from the Moodle plugins directory on this site. However, the plugin installation pre-check failed (reason code: remoteunavailable).
bobopinna commented 1 year ago

I'm sorry but the plugin installation from Moodle plugin directory is not managed from plugins as AutoEnrol. It's done from Moodle core.

I think you need to check and set the right SELinux context on your Moodle directory in order to work without using Permissive mode. You also need to check connection rules from your server to Moodle server to solve the second problem.

The easy way to install and keep secure your server is to manually install your plugins on your server. You can find all documentation here: https://docs.moodle.org/400/en/Installing_plugins#Installing_manually_at_the_server.

HTH, Roberto