Error "error/file_not_writable" when attempting course back up

Re: Error "error/file_not_writable" when attempting course back up

by Clement See -
Number of replies: 0

l am facing a similar problem. However l am not very experienced with moodle. When l try to delete to a topic or any object from , as the admin user after turning editing on, l get the "error/file_not_writablesad

These are the specs of my moodle instance

  • Moodle 3.1.1+
  • Centos 7 OS 
  • Apache 2.4.6 
  • MySQL 5.6.31
  • PHP 5.4.16

The moodle paths are as follows

  /var/www/moodle/moodledata

  /var/www/moodle/moodlesite

  /etc/php.ini

  /etc/httpd/conf/httpd.conf

l have ensured that the permissions on : /var/www/moodle/moodledata are correct ( 777), and the folders are owned by the apache user


Apache writes logs on: 

   ErrorLog "/var/log/httpd/error.log"

The logging path for PHP configs are as follows:

 log_errors = On

 error_log = /var/log/httpd/php-errors.log

Whenever l try to delete an object on moodle, or to duplicate an object , l get the "error/file_not_writable" on the frontend. l don't see any trace of this error on the log files for apache or PHP. The /var/log/httpd/  folder permissions have also been changed to 777 in desperation.

l read through https://moodle.org/mod/forum/discuss.php?d=165833 and other posts, but l can't seem to find a solution to this. Please help with pointers. l need to know exactly

  • which log file is not writeable, where moodle is trying to write to
  • l also need to be able to see this error in detail on the log file(s)