Running wget in command line throws AH01630 error: client denied by server configuration


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 “” > /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:

DocumentRoot /var/www/html/siteroot/public

<Directory /var/www/html/siteroot/public>
AddDefaultCharset UTF-8
Options FollowSymLinks
AllowOverride All
Require all granted

<Directory /var/www/html/siteroot>
Require all granted

It’s a permission issue? Any ideas?


It looks like I forgot to restart Apache in order for changes to be applied…