500 Access denied errror while installing moodle open-source learning management system via Ubuntu 20.04.LTS

mike_linux

Active Member
Joined
Nov 20, 2020
Messages
115
Reaction score
63
Credits
1,092
Hi guys! Hope you’re doing fine. I am about to install via my Ubuntu 20.04.LTS system Moodle as a teacher which is a free open-source learning management system written in PHP (and distributed under GNU GPL), to upload exercises and other stuff for my students. To achieve the installation of this platform I have to upload at first all the files from here (and also do some changes in moodle/lib/dml/mysqli_native_moodle_database.php necessary to work for my class) onto the webspace of the school (which they have provided to us). To bypass the 500 permission denied error I have enabled in vsftpd.conf the write access as mentioned here. Nevertheless, when the lib folder gets reached to for uploading (i.e. moddle/lib/), I receive many 500 permission denied errors, despite I have given full access via $sudo chmod 777 -R moodle to the moodle folder and done all the above steps. Why does this happen and what can I do to upload the remaining files? THX.
 


Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
2,216
Reaction score
1,621
Credits
16,361
This happens because there is a directory higher in the tree where you do not have execute permission. If a parent directory has no execute permission for some user, then that user cannot stat any sub-directories regardless of the permissions on those sub-directories. It's better to use groups to manage permissions than give to give directories 777 permission
 
OP
mike_linux

mike_linux

Active Member
Joined
Nov 20, 2020
Messages
115
Reaction score
63
Credits
1,092
This happens because there is a directory higher in the tree where you do not have execute permission. If a parent directory has no execute permission for some user, then that user cannot stat any sub-directories regardless of the permissions on those sub-directories. It's better to use groups to manage permissions than give to give directories 777 permission
Hi @Lord Boltar I believe you mean user-groups right? If I create them, then how can I apply them to filezilla?
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
2,216
Reaction score
1,621
Credits
16,361
By going into Users&Groups and add the function
2.png
 

Lord Boltar

Well-Known Member
Joined
Nov 24, 2020
Messages
2,216
Reaction score
1,621
Credits
16,361
Ok But which function do you mean exactly? BTW I have the same permission denied problem on Windows 10 (I have tried that out, but based on your explanation, I conclude, that it doesn't matter which OS you are using).
You should not need that for FileZilla you should get prompted for your sudo password - add Moodle to the groups
 

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
9,049
Reaction score
7,696
Credits
73,849
You won't like it, but my advice is to just get some cheap hosting and a domain name. Get hosting that has Softaculous and you can install Moodle in a sub-directory, or even in the public_html directory. Installation will take three minutes, upgrade automatically, and rotate backups on the schedule you tell it to.
 
OP
mike_linux

mike_linux

Active Member
Joined
Nov 20, 2020
Messages
115
Reaction score
63
Credits
1,092
You won't like it, but my advice is to just get some cheap hosting and a domain name. Get hosting that has Softaculous and you can install Moodle in a sub-directory, or even in the public_html directory. Installation will take three minutes, upgrade automatically, and rotate backups on the schedule you tell it to.
Your idea is not bad, but I don't want to spend extra money for state facilities which have enough money to purchase additional space. Nevertheless, I will keep in mind your solution for my personal purposes :)
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com


Top