gtn / exaport

exabis eportfolio
http://www.exabis.at
13 stars 13 forks source link

Warning: touch(): Utime failed: Operation not permitted after installation #16

Closed leac closed 4 years ago

leac commented 6 years ago

Hi

After installing the block, I get 2 errors of this kind:

Warning: touch(): Utime failed: Operation not permitted in /blocks/exaport/build/developermode.php on line 130

Warning: touch(): Utime failed: Operation not permitted in /blocks/exaport/build/developermode.php on line 144

What should I do?

leac commented 6 years ago

I set all files in this block's folder to 644 and that seams to have solved the problem: find . -type f -exec chmod 0644 {} \;

sammarshallou commented 6 years ago

Note: Making files in your dirroot (PHP source) writable by the Apache user introduces a security risk. You should set up your web server so that the Apache user does not own, and cannot create or write, any PHP files or folders. See https://docs.moodle.org/35/en/Security_recommendations#Running_Moodle_on_a_dedicated_server

leac commented 5 years ago

@sammarshallou Thank you for your note. According to that link, 644 should be set on files, which is what I did. And Apache is not the owner.