Just built a sample moodle install inside a debian 5 VE container.
Needed to execute a cron job every 5 minutes.
Placed a file with the following contents into /etc/cron.d/ folder:
Restarted the Apache with:
Even after restarting the container itself, the same situation persists.
Also chmoded /var/www/moodle/admin/cron.php file to be 755 chowned by www-data:www-data.
Needed to execute a cron job every 5 minutes.
Placed a file with the following contents into /etc/cron.d/ folder:
Code:
# /etc/cron.d/moodle: crontab fragment for moodle
*/5 * * * * wget -q -O /dev/null [URL]http://localhost/admin/cron.php[/URL]
The /var/log/apache2/access.log doesn't show any entry every 5 minutes, but when we execute the following from the console/etc/init.d/apache2 restart
we get the entry in the /var/log/apache2/access.log file.wget -q -O /dev/null [URL]http://localhost/admin/cron.php[/URL]
Even after restarting the container itself, the same situation persists.
Also chmoded /var/www/moodle/admin/cron.php file to be 755 chowned by www-data:www-data.
Last edited: