Permissions in 2.7 for Plugin Installer

Permissions in 2.7 for Plugin Installer

by Eric Albert -
Number of replies: 4

I have Moodle installed on MySQL with Windows 2012R2 and am having some problems figuring out how to do permissions for the Plugin Installer. Which user needs permissions and to what section? I found the directions for Linux at https://docs.moodle.org/27/en/admin/mdeploy/notwritable, but I'm not clear on if the administrators in moodle need to be granted access, the webserver admin account, DB admin account, or another account needs access and how that exactly translates on windows. Below I have included screenshots of both the plugin update window and the plugin installer window. ALso, are the security concerns that come into play when updating the permissions in these areas? Thank you so much for your time and assistance.


Eric Albert

Moodle error 2

Plugin Error

Average of ratings: -
In reply to Eric Albert

Re: Permissions in 2.7 for Plugin Installer

by Ken Task -
Picture of Particularly helpful Moodlers

It's not Moodle users that need permissions, but the user under which your web server runs (you didn't mention what web server, but assume apache).   So if apache web server runs under 'apache' user then it's the 'apache' user that needs permissions to write to the directories (that's what it was telling you on the first screen error).   Also check the permissions/ownerships on the theme directory as well as all subdiretories there in.

'spirit of sharing', Ken

In reply to Ken Task

Re: Permissions in 2.7 for Plugin Installer

by Eric Albert -

Thanks Ken, but I am using IIS. I believe the administrator account owns the webserver and has write access to all the folders in the theme and all other directories. Am I missing something?


error3

In reply to Eric Albert

Re: Permissions in 2.7 for Plugin Installer

by Ken Task -
Picture of Particularly helpful Moodlers

Don't run Winders IIS ... but isn't there a User for IIS to run under?

And the other thing relates to how one is installing the plugins/addons ... if using mdeploy, some server have issues with the certs that download.moodle.org might be looking for ... the process switches to https:// when downloading.  

https://docs.moodle.org/27/en/Automatic_updates_deployment

And the section entitled:
Provide the CA certificate manually

@ https://docs.moodle.org/27/en/SSL_certificate_for_moodle.org

With every new installation, I now do this every time rather than waiting to see if the new server install will have issues or not:

"You need to download the file cacert.pem from there and put it into your moodledata/moodleorgca.crt file (i.e. download the cacert.pem file, rename it to moodleorgca.crt and upload it into your mooodledata). If this file is found in moodledata, Moodle will use it instead of relying on certificates provided by the operating system."

Since am NOT a Winders person, will defer to anyone who is.   Ok, how about you Winders Admins out there ... jump in and share!

'spirit of sharing', Ken

In reply to Ken Task

Re: Permissions in 2.7 for Plugin Installer

by Eric Albert -

THANK YOU! You got me on the right path. I needed to give write access to the local IUSR group since I'm using IIS 7.5. This is now resolved.