I have couple of methods in a controller that is supposed to be executed as through a cronjob using wget.
This is the cronjob example:
*/30 * * * * root wget -O -q “http://www.example.com/cronjobs/method” > /dev/null 2>&1
The page runs fine in browser.
Running from the command line Apache throws an error; AH01630: client denied by server configuration /var/www/html/siteroot/public/cronjobs
This is how my .conf file looks like:
<Directory /var/www/html/siteroot/public> AddDefaultCharset UTF-8 Options FollowSymLinks AllowOverride All Require all granted </Directory> <Directory /var/www/html/siteroot> Require all granted </Directory>
It’s a permission issue? Any ideas?