w3 total cache 500 internal server error

W3 Total cache is a very powerful plugin and if handled properly, can improve performance of your wordpress a lot. But, at times it can lead to migraines of worst order. One such scenario is when you activate browser caching and suddenly pretty 500 errors are slapped.

If you just activated page caching and browser caching, and were shown 500 internal server error, here is a possible solution:

  1. Check your apache error logs.
  2. Most likely the latest error will be related to .htaccess, something like “ExpiresActive not allowed here”
  3. This is caused due to incompatible virtual hosts settings.
  4. Go to your virtual host settings and add AllowOverride Indexes to the relevant code block

For me it was:

<Directory /var/www/vhosts/domain.com>
Options FollowSymLinks
AllowOverride FileInfo Options Indexes
Order allow,deny
Allow from all

I added Indexes to AllowOverride. I think the order doesnt matter.

And the issue was fixed.


Please enter your comment!
Please enter your name here