Advanced Optimization of Rackspace Cloud Server for WordPress includes installation of Memcached, PEC, APC, XCache, eAccelerator and installation of New Relic. You must be already running a Server instance with rpm based REHL (Red Hat/CentOS, commands might differ for others) distro variants with already installed and up WordPress from our older video guides (please search in this website, if needed) or installed properly yourself. We prefer Red Hat Enterprise Linux over CentOS for production site, however there is no difference in commands between Red Hat Enterprise and CentOS and using CentOS is encouraged for cost saving. Red Hat Enterprise is taken as the standard, there are a few differences in between, as the two distributions sometimes apply different minor patches. In other words, at the level of most need, you can treat CentOS and RHEL as interchangeable. As basically we have Enterprise grade readers, we just mentioned the point. CentOS is derived entirely from the Red Hat Enterprise Linux (RHEL) distribution with just few mods. This server node is running REHL for the need of paid support, nothing else.
Advanced Optimization of Rackspace Cloud Server for WordPress : Target Audience
This guide on Advanced Optimization of Rackspace Cloud Server for WordPress is intended for the users who :
- Are using W3 Total Cache Plugin
- Wants to play with various Caching option like – Memcached, APC, XCache
- Already are Guru on UNIX commands or on the way…
- Are ready to take risk with a broken installation on dev server
- Knows clearly about most of the basics of WordPress optimization ( See WordPress 3.6 on Rackspace Cloud Files and W3 Total Cache 0.9.3 Plugin ; it was for Cloud Sites, but basic remains the same)
Advanced Optimization of Rackspace Cloud Server for WordPress : Procedures and Steps
Update all of your installed software, but do so only if you have the experience and time to double check configurations afterwards:
---
1 | yum update |
Install PHP Extention Community Library (PECL) :
1 | yum install php-pear |
Install the PHP Development package :
1 | yum install php-devel |
Install apxs with the following command :
1 | yum install httpd-devel |
Make sure GCC is up-to-date :
1 | yum install gcc make |
Make sure ZLIB is fully installed :
1 | yum install zlib-devel |
Make sure PCRE is fully installed :
1 | yum install pcre-devel |
Memcached (Daemon) Installation:
Try to install with yum :
1 | yum install libevent libevent-devel |
Alternatively, compile it :
1 | cd /usr/local/src && wget http://monkey.org/~provos/libevent-2.0.21-stable.tar.gz && tar -xzf libevent-2.0.21-stable.tar.gz && cd libevent-2.0.21-stable |
1 2 3 | ./configure && make && make install< echo "/usr/local/lib/" > /etc/ld.so.conf.d/libevent.conf ldconfig -v |
Find the latest stable memcached, download and extract:
1 | cd /usr/local/src && wget http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz && tar -xzf memcached-1.4.15.tar.gz && cd memcached-1.4.15 |
1 | ./configure && make && make install |
Make sure memcached is starts automatically on server boot:
1 2 3 4 5 6 | 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 Memcache Module Installation:
Install and copy the W3 Total Cache’s copy, example path is shown :
1 2 | pecl install memcache cp /var/www/vhosts/your-domain.com/httpdocs/wp-content/plugins/w3-total-cache/ini/memcache.ini /etc/php.d/ |
Restart :
1 | /etc/init.d/httpd restart |
Test :
1 | php -r 'phpinfo();' | grep 'memcache' |
Or you can do it via compilation. Download the latest stable version and manually do it.
XCache and eAccelerator Installation :
For both, you need to compile from the source :
1 | https://github.com/eaccelerator/eaccelerator/wiki |
1 | http://xcache.lighttpd.net/wiki/LinkArticle |
You’ll get the ini files for both in :
wp-content/plugins/w3-total-cache/ini/
You will run cp like above to add to /etc/php.d/
New Relic Installation:
Basically it is in Marketplace :
1 | https://cloudtools.rackspace.com/apps/347?946478036 |
You will get the doc here :
1 | https://docs.newrelic.com/docs/php/php-agent-installation-redhat-and-centos |
Tagged With centos wordpress optimization , centos wordpress optimization language:en , wordpress server optimization
here says
Hi there to every single one, it’s really a pleasant for me to visit this site,
it contains helpful Information.