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" 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. Recommended: On the "Minify" tab all of the recommended settings are preset. Use the help button to simplify discovery of your CSS and JS files and groups. Pay close attention to the method and location of your JS group embeddings. See the plugin's FAQ for more information on usage.
  4. Recommended: On the "Browser Cache" tab, HTTP compression is enabled by default. Make sure to enable other options to suit your goals.
  5. Recommended: If you already have a content delivery network (CDN) provider, proceed to the "Content Delivery Network" 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 "Content Delivery Network" 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 "Content Delivery Network" tab accordingly. Be sure to FTP upload the appropriate files, using the available upload buttons.
  6. Optional: On the "Database Cache" tab the recommended settings are preset. If 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.
  7. Optional: On the "Object Cache" tab the recommended settings are preset. If using a shared hosting account use the "disk" method with caution, the response time of the disk may not be fast enough, so this option is disabled by default. Test this option with and without database cache to ensure that it provides a performance increase.
  8. Optional: On the "User Agent Groups" tab, specify any user agents, like mobile phones if a mobile theme is used.

Check out the FAQ for more details on usage.


Rewrite rules

$rules): ?>

:


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

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
  7. Make sure PCRE is fully installed:
    # yum install pcre-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-2.0.14-stable.tar.gz && tar -xzf libevent-2.0.12-stable.tar.gz && cd libevent-2.0.12-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.6.tar.gz && tar -xzf memcached-1.4.6.tar.gz && cd memcached-1.4.6
  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.6.tgz && tar -xzf memcache-2.2.6.tgz && cd memcache-2.2.6
  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'

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.1.9.tgz && tar -xzf APC-3.1.9.tgz && cd APC-3.1.9
  3. Note the paths returned for the following commands:
    # whereis php-config
    # whereis apxs
  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/sbin/apxs --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'

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.2/xcache-1.3.2.tar.gz && tar -xzf xcache-1.3.2.tar.gz && cd xcache-1.3.2
  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'

eAccelerator Installation:
Time required: 1 minute

  1. If using PHP v5+, download the lastest compatible version and extract. Remember v0.9.5.3 is the last version that supports user objects, later versions only support opcode caching.
    # cd /usr/local/src && wget http://autosetup1.googlecode.com/files/eaccelerator-0.9.5.3.tar.bz2 && tar -xjf eaccelerator-0.9.5.3.tar.bz2 && cd eaccelerator-0.9.5.3
  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-eaccelerator-shared-memory --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'

postbox_header('Note(s):'); ?>
  • The provided instructions are for 32-bit CentOS, however we can provide others based on your requests.
  • Best compatibility with IIS is realized via WebMatrix, which also includes the supported WinCache opcode cache.
  • In the case where Apache is not used, the .htaccess file located in the root directory of the WordPress installation, wp-content/w3tc/pgcache/.htaccess and wp-content/w3tc/min/.htaccess contain directives that must be manually created for your web server software.
  • Restarting the web server will empty the opcode cache, which means it will have to be rebuilt over time and your site's performance will suffer during this period. Still, an opcode cache should be installed in any case to maximize WordPress performance.
  • Consider using memcached for objects that must persist across web server restarts or that you wish to share amongst your pool of servers (or cluster), e.g.: database objects or page cache.
  • Some yum or mirrors may not have the necessary packages, in such cases you may have to do a manual installation.
postbox_footer(); ?>