Memcached Server Installation for Vbulletin and wordpress
- Category : Linux Helpline (Easy Guide)
- Posted on : Mar 01, 2019
- Views : 2,198
- By : Icarus M.
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
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu