Plugin Installation

  1. Set the permissions of wp-content back to 755, e.g.: # chmod 755 /var/www/vhosts/domain.com/httpdocs/wp-content/
  2. On the "General Settings" tab and select your caching methods for page, database and minify. In most cases, "disk enhanced" mode for page cache, "disk" mode for minify and "disk" mode for database caching are "good" settings.
  3. Optional: If you already have a content delivery network (CDN) provider, proceed to the "CDN Settings" tab and populate the fields and set your preferences. If you do not use the Media Library, you will need to import your images etc into the default locations. Use the Media Library Import Tool on the CDN Setting tab to perform this task. If you do not have a CDN provider, you can still improve your site's performance using the "Self-hosted" method. On your own server, create a subdomain and matching DNS Zone record; e.g. static.domain.com and configure FTP options on the CDN tab accordingly. Be sure to FTP upload the appropriate files, using the available upload buttons.
  4. Optional: On the "Minify Settings" tab all of the recommended settings are preset. View your site's HTML source and search for .css and .js files and then specify any CSS and JS files in the respective section. In the case of JS files you can (optionally) specify the type and location of the embedding using the drop down menu. See the plugin's FAQ for more information on usage.
  5. Optional: On the "Database Cache Settings" tab the recommended settings are preset. If you're using a shared hosting account use the "disk" method with caution; in either of these cases the response time of the disk may not be fast enough, so this option is disabled by default.
  6. You're done! Get back to blogging!
Check out the FAQ for more details on usage.

(Optional) Software Installation for Dedicated / Virtual Dedicated / Multiple Servers

Server Preparation:
Time required: ~1 minute

  1. Install yum if you don't already have it. Then, if you like, you can update all of your installed software, but do so only if you have the experience and time to double check configurations afterwards:
    # yum update
  2. Install PECL:
    # yum install php-pear
  3. Install the PHP Development package:
    # yum install php-devel
  4. Install apxs with the following command:
    # yum install httpd-devel
  5. Make sure GCC is up-to-date:
    # yum install gcc make
  6. Make sure ZLIB is fully installed:
    # yum install zlib-devel

Memcached (Daemon) Installation:
Time required: 2 minutes

  1. Try to install with yum:
    # yum install libevent libevent-devel

    If this succeeds skip to #5. If this fails, then let's compile. Download and extract the latest stable version:
    # cd /usr/local/src && wget http://monkey.org/~provos/libevent-1.4.13-stable.tar.gz && tar -xzf libevent-1.4.13-stable.tar.gz && cd libevent-1.4.13-stable
  2. Let's compile:
    # ./configure && make && make install
  3. In the output you should see:

    Libraries have been installed in:
    /usr/local/lib

    If so you can:
    # echo "/usr/local/lib/" > /etc/ld.so.conf.d/libevent.conf
  4. Configure your server for the new install:
    # ldconfig -v
  5. Now find the latest stable memcached, download and extract:
    # cd /usr/local/src && wget http://memcached.googlecode.com/files/memcached-1.4.4.tar.gz && tar -xzf memcached-1.4.4.tar.gz && cd memcached-1.4.4
  6. Let's compile:
    # ./configure && make && make install
  7. Make sure memcached is starts automatically on server boot:
    # touch /etc/init.d/memcached
    # echo '#!/bin/sh -e' >> /etc/init.d/memcached
    # echo '/usr/local/bin/memcached -d -m 128 -p 11211 -u nobody -l localhost' >> /etc/init.d/memcached
    # chmod u+x /etc/init.d/memcached
    # echo '/etc/init.d/memcached' >> /etc/rc.local
  8. And finally, let's start memcached:
    # /etc/init.d/memcached

PECL Memcache Module Installation:
Time required: 1 minute

  1. Either use PECL (and skip to #4 if successful):
    # pecl install memcache
  2. Or via compilation. Download the latest stable version and extract:
    # cd /usr/local/src/ && wget http://pecl.php.net/get/memcache-2.2.5.tgz && tar -xzf memcache-2.2.5.tgz && cd memcache-2.2.5
  3. Now we start to compile:
    # phpize && ./configure && make && make install
  4. You can also use the memcache.ini file we prepared for you:
    # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/memcache.ini /etc/php.d/
  5. Finally restart apache:
    # /etc/init.d/httpd restart
  6. You're done! Memcache should now be available. If the following command retuns anything, you're all set:
    # php -r 'phpinfo();' | grep 'memcache'

For windows users we recommend checking the following site(s) for more installation tips:


PECL Alternative PHP Cache (APC) Installation (Recommended):
Time required: 1 minute

  1. Install APC using the PECL command (and skip to #5 if successful):
    # pecl install apc
  2. Or via compilation. Download the latest stable version and extract:
    # cd /usr/local/src && wget http://pecl.php.net/get/APC-3.0.19.tgz && tar -xzf APC-3.0.19.tgz && cd APC-3.0.19
  3. Note the path returned for the following command:
    # whereis php-config
  4. Use the output from #2 to modify the --with-apxs and --with-php-config flags in the following compile command:
    # phpize && ./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/bin/phpize --with-php-config=/usr/bin/php-config && make && make install

    The result should be similar to:
    Installing shared extensions: /usr/lib/php/modules/
  5. You can also use the apc.ini file we prepared for you:
    # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/apc.ini /etc/php.d/
  6. Restart apache when ready:
    # /etc/init.d/httpd restart
  7. You're done! APC should now be available. If the following command retuns anything, you're all set:
    # php -r 'phpinfo();' | grep 'apc'

For windows users we recommend checking the following site(s) for more installation tips:


eAccelerator Installation:
Time required: 1 minute

  1. If using PHP v5.2+, download the latest compatible version and extract:
    # cd /usr/local/src && wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2 && tar -xjf eaccelerator-0.9.6.tar.bz2 && cd eaccelerator-0.9.6
  2. Note the path returned for the following command:
    # whereis php-config
  3. Use the output from #2 to modify the --with-php-config flag in the following compile command:
    # phpize && ./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config && make && make install

    The result should be similar to:
    Installing shared extensions: /usr/lib/php/modules/
  4. You can also use the eaccelerator.ini file we prepared for you:
    # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/eaccelerator.ini /etc/php.d/
  5. Restart apache when ready:
    # /etc/init.d/httpd restart
  6. You're done! eAccelerator should now be available. If the following command retuns anything, you're all set:
    # php -r 'phpinfo();' | grep 'eaccelerator'

For windows users we recommend checking the following site(s) for more installation tips:


XCache Installation:
Time required: 1 minute

  1. Download the latest compatible version and extract:
    # cd /usr/local/src && wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz && tar -xzf xcache-1.3.0.tar.gz && cd xcache-1.3.0
  2. Note the path returned for the following command:
    # whereis php-config
  3. Use the output from #2 to modify the --with-php-config flag in the following compile command:
    # phpize && ./configure --with-php-config=/usr/bin/php-config --enable-xcache --enable-xcache-optimizer --enable-xcache-coverager && make && make install

    The result should be similar to:
    Installing shared extensions: /usr/lib/php/modules/
  4. You can also use the eaccelerator.ini file we prepared for you:
    # cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/xcache.ini /etc/php.d/
  5. Restart apache when ready:
    # /etc/init.d/httpd restart
  6. You're done! XCache should now be available. If the following command retuns anything, you're all set:
    # php -r 'phpinfo();' | grep 'xcache'

Note(s):