WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As soon as I enable the option

Performance --> Browser cache --> 'Set expires header' to true

I get a 500 Internal Server Error.

Then I have to SSH into the server and delete the new entries to make the site work again.

I have googled a lot and it seems nobody has this problem. ANd yes I have already sudo a2enmod expires


Here is the log file, your help is appreciated, as I can't find anything on Google.

[Wed Jan 11 07:29:35 2012] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.11 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations
[Wed Jan 11 07:29:38 2012] [alert] [client xxxxx] /var/www/xxx/wp-content/w3tc/min/.htaccess: ExpiresActive not allowed here
[Wed Jan 11 07:29:42 2012] [alert] [client xxxxx] /var/www/xxx/wp-content/w3tc/min/.htaccess: ExpiresActive not allowed here
[Wed Jan 11 07:33:36 2012] [alert] [client xxxxx] /var/www/xxx/.htaccess: ExpiresActive not allowed here, referer: https://www.xxx.com/wp-admin/admin.php?page=w3tc_browsercache
[Wed Jan 11 07:33:36 2012] [alert] [client xxxxx] /var/www/xxx/.htaccess: ExpiresActive not allowed here

Please help! Thanks

share|improve this question

closed as off-topic by gmazzap, Pieter Goosen, birgire, ialocin, Rarst Aug 25 '14 at 16:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

We Need You (edit your answer and add that) to add the htaccess file so we would have a look :) – Sagive SEO Jan 16 '12 at 20:22
up vote 0 down vote accepted

The best way to deal with issues like this is referring to the manual.


Syntax: ExpiresActive On|Off
Context: server config, virtual host, directory, .htaccess
Override: Indexes
Status: Extension
Module: mod_expires

Look at the Context and Override syntax rules. It's OK to use ExpiresActive in an .htaccess file aslong as you AllowOverride Indexes

share|improve this answer

The most common cause of internal server errors are owner/permission issues. To be of more help can you provide any relevant entries in the apache messages log or the error_log file.

share|improve this answer
shouldn't this be a comment? – Hameedullah Khan Jan 12 '12 at 10:53
It should, but he doesn't have enough rep to comment yet...I'm not sure why the site is setup like that tbh – mor7ifer Jan 12 '12 at 17:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.