WordPress SuperCache and Apache, PHP APC problems

Yes it is true, there is some problem with APC cache PHP module and WordPress SuperCache plugin.

I have experienced those random blank screens with an error 500, just like it is described here:

http://askubuntu.com/questions/141734/incompatibility-between-wp-super-cache-and-php-apc

My current configuration is:

Ubuntu 12.04 32 bits
PHP 5.3.1
Apache 2.2.2
WordPress 3.8
WordPress SuperCache 1.3.1

The issue has been identified by the plugin dev team: https://wordpress.org/plugins/wp-super-cache/faq/

The “white screen of death” or a blank page when you visit your site is almost always caused by a PHP error but it may also be caused by APC. Disable that PHP extension if you have trouble and replace with eAccelerator or Xcache.

In order to disable the APC module:

sudo nano /etc/php5/apache2/conf.d/apc.ini

and comment the line

;extension=apc.so

Then restart apache

sudo service apache2 restart

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s