HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


Memcached Server Installation for Vbulletin and wordpress

Memcached is a memory caching system. This will help to increase speed of your vbulletin or wordpress wesites. You can install it easily as follows,

Download the memcached server from http://memcached.org/

 wget -c  http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz
 tar -xzf  memcached-1.4.15.tar.gz
 cd memcached-1.4.15/
 yum -y install libevent libevent-devel
 ./configure --prefix=/opt/memcached
 make
 make install

Now install init script . I wrote an init script for redhat and centos servers , you can use it to start/stop memcached.

 wget -c http://files.hostseo.com/conf/memcached.redhar.rc.txt
 mv -f memcached.redhar.rc.txt /etc/init.d/memcached
 chmod 750 /etc/init.d/memcached
 mkdir /var/run/memcached
 /etc/init.d/memcached start
 chkconfig --add memcached
 chkconfig memcached on

Install php-pecl memcache

Download the latest stable memcached from http://pecl.php.net/package/memcache

wget -c http://pecl.php.net/get/memcache-2.2.7.tgz
 tar -xzf  memcache-2.2.7.tgz
 cd memcache-2.2.7/
 phpize
 ./configure
 make
 make install

Now restart apache and create a phpinfo page and test whether the memcache options is showing or not. If it is there then you installed php module . If not you need to check your php.ini settings and enable memcache module

Vbulletin Configuration

Edit the Vb configuration file includes/config.php and uncomment the following lines

$config['Datastore']['class'] = 'vB_Datastore_Memcached';
$i = 0;
// First Server
$i++;
$config['Misc']['memcacheserver'][$i]           = '127.0.0.1';
$config['Misc']['memcacheport'][$i]                     = 11211;
$config['Misc']['memcachepersistent'][$i]       = true;
$config['Misc']['memcacheweight'][$i]           = 1;
$config['Misc']['memcachetimeout'][$i]          = 1;
$config['Misc']['memcacheretry_interval'][$i] = 15;

Now restart apache server . Your vbulletin now works with memcached. You can see the performance difference within 1 to 2 hours.

WordPress Configuration

You may just install the wordpress memcached plugin and configure it from wordpress admin panel

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 1
2345678
9101112131415
16171819202122
23242526272829
30 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional