[Mon Aug 24 13:23:12.104291 2015] [authz_core:error] [pid 27164] [client 151.xxx.xxx.xxx:60144] AH01630: client denied by server configuration: ...

Just got done debugging my WordPress installation. I noticed that the Apache2 error log had grown huge. So when I checked, I found that any time I clicked on a link in the admin panel, dozens of errors like the one above were thrown. A little investigation revealed that I need the following in my config file:

<Directory /path/to/my/sites>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted

So I duly added the code, saved, and restarted the server. No change. I checked all file permissions and ownership. Nothing. I checked .htaccess and didn’t find any “denys” there. Finally, lurking in my wp-content/plugins directory, I found another .htaccess file that, for some reason had two “deny all” statements. Commented them out and, bada boom! No more errors.

The site was working fine, but that file was blocking access to all of the plugin files. I’m not sure how it got to be the way it was. There’s no evidence that anyone’s accessed the site other than me. Has me scratching my head…

At least I have a nifty new script that I can use in place of

tail -f -n100 /var/log/apache2/error.log

Hopefully, I won’t need it again 🙂

Leave a Comment

Your email address will not be published. Required fields are marked *