# chmod 755 /var/www/vhosts/domain.com/httpdocs/wp-content/
FAQ for more details on usage', 'w3-total-cache' ); ?>.
:
:
Server Preparation:
Time required: ~1 minute', 'w3-total-cache' ); ?>
# yum update
# yum install php-pear
# yum install php-devel
# yum install httpd-devel
# yum install gcc make
# yum install zlib-devel
# yum install pcre-devel
Time required: 2 minutes', 'w3-total-cache' ); ?>
# yum install libevent libevent-devellatest stable version:', 'w3-total-cache' ); ?>
# 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
# ./configure && make && make install
# echo "/usr/local/lib/" > /etc/ld.so.conf.d/libevent.conf
# ldconfig -v
# 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
# ./configure && make && make install
# 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
# /etc/init.d/memcached
PECL Memcached Module Installation:
Time required: 1 minute', 'w3-total-cache' ); ?>
# pecl install memcached
# 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
# phpize && ./configure && make && make install
# cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/memcache.ini /etc/php.d/
# /etc/init.d/httpd restart
# php -r 'phpinfo();' | grep 'memcache'
PECL Alternative PHP Cache (APC) Installation (Recommended):
Time required: 1 minute', 'w3-total-cache' ); ?>
# pecl install apc
# 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
# whereis php-config # whereis apxs
# phpize && ./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/sbin/apxs --with-php-config=/usr/bin/php-config && make && make installThe result should be similar to:
# cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/apc.ini /etc/php.d/
# /etc/init.d/httpd restart
# php -r 'phpinfo();' | grep 'apc'
XCache Installation:
Time required: 1 minute', 'w3-total-cache' ); ?>
# 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
# whereis php-config
# phpize && ./configure --with-php-config=/usr/bin/php-config --enable-xcache --enable-xcache-optimizer --enable-xcache-coverager && make && make install
Installing shared extensions: /usr/lib/php/modules/
# cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/xcache.ini /etc/php.d/
# /etc/init.d/httpd restart
# php -r 'phpinfo();' | grep 'xcache'
eAccelerator Installation:
Time required: 1 minute', 'w3-total-cache' ); ?>
# 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
# whereis php-config
# phpize && ./configure --with-eaccelerator-shared-memory --with-php-config=/usr/bin/php-config && make && make install
Installing shared extensions: /usr/lib/php/modules/
# cp /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/eaccelerator.ini /etc/php.d/
# /etc/init.d/httpd restart
# php -r 'phpinfo();' | grep 'eaccelerator'
New Relic Installation:
Time required: Mileage varies.
Find requirements and installation instructions on New Relic website: Installing New Relic for PHP. To see if this server supports New Relic click "compatibility check" on the Dashboard tab. Other key resources can be found below: