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


#1

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:

DocumentRoot /var/www/html/siteroot/public

<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?


#2

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