Last night, I am moving back this blog to the QuickWeb. There is nothing wrong with BuyVM, but I just want to try again with QuickWeb.
This Blog which created using LowEndScript with Debian 5, now also equipped with Memcached and W3 Total Cache.
So, here is the tutorial for installing the Memcached in this Debian VPS :
- Set the permissions of wp-content/ to 755 :
1# chmod 755 /var/www/domain.com/wp-content/ - Update the installation:
1# apt-get update && apt-get upgrade - Install the C Compiler
1# apt-get install gcc - Installing the Sysvconfig for configuring init script
1# apt-get install sysvconfig - Installing required package
12345# apt-get install php-pear# apt-get install php-devel# apt-get install php5-devel# apt-get install zlib-devel# apt-get install pcre-devel - Installing libevent
1# apt-get install libevent libevent-devel
If the previous command not working, we can try to compile it from the source. Now lets download the package and extract it :
1# cd /usr/local/src && wget http://monkey.org/~provos/libevent-2.0.11-stable.tar.gz && tar -xzf libevent-2.0.12-stable.tar.gz && cd libevent-2.0.12-stable - Compile the memcached
1# ./configure && make && make install
After finished, you should see something like :
1Libraries have been installed in: /usr/local/lib - Run the following command
1# echo "/usr/local/lib/" > /etc/ld.so.conf.d/libevent.conf - Config the server for the new install
1# ldconfig -v - Download and extract the latest memcached
1# 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 - Compile the memcached
1# ./configure && make && make install - Make sure memcached started when server start
12345# 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 - Start the memcached
1# /etc/init.d/memcached - Restart the Nginx and PHP-Cgi
12# service nginx restart# service php-cgi restart
Pages: 1 2