Auto Deleating Enrollment file

Auto Deleating Enrollment file

by Peter Easton -
Number of replies: 1
Hi All,
I've read everything i can find on the auto deleation of a flatfile enroll file but nothing seems to work.

I keep getting :
The text file you are using for file-based enrollments
(/moodle/enrol/flatfile/course.mdl) can not be deleted by the cron process. This usually means the permissions are wrong on
it. Please fix the permissions so that Snap can delete the file, otherwise it might be processed repeatedly.


I have the cron running every 15 minutes to make sure it has enough time to finish. I run several enroll files night of various sizes from 50 lines to 1000+ but it doesn't seem to matter it repeats at least twice for each.

What should the owner of the file be? www,snap,...
What should be the permissions? 755,777,...
What should the enclosing directory permissions be? 755,777,...

I've tried everything and nothing seems to work!

Pete
Moodle 1.8.6 (Build: 20080711)
php 5.2.5
mysql 5.0.51
Average of ratings: -
In reply to Peter Easton

Re: Auto Deleating Enrollment file

by Manuel NT -

 Most  known linux distro use  www-data as http user ; so your file showld have 775 permissions ,  if  you have a folder test/ and a  file /test/file.txt the  follow  commands showld work ;   chown -R www-data:www-data /test ; chmod -R 775 /test ;

 Check your  server not in chroot and how  user and  group your server hold;   in /etc/apache2/apache2.conf  ;