Finally the help of IT is here

Blog of computer solutions.

Enable Memcached on CentOS with Putty

Written by Xaus Xavier Nadal on July 22nd, 2013

Goodnight.

Today we will see how step install step Memcached on CentOS, also will serve for newbies in the field for your hosting, we will in a very generic way and can be used on any virtual server (VPS) or dedicated server or even in your shared hosting.

We're going to do with putty for which we have previously set up an SSH connection from our web server. What will we do with root credentials (perhaps missing unto you these credentials) but if you have got them this is your step article.

After connecting with Putty we will ask the server a login and password, put the of your root.

The first thing we do is create a temporary directory with the mkdir command which will download memcache in its stable version in the example of 22 / 9 / 2012 2.2.7 version.

mkdir repo

repo cd

Now we will download from the Internet repository the latest stable with the following command version.

wget http://pecl.php.net/get/memcache-2.2.7.tgz

Memcached 1

As you see in the picture we have made a ls to see that the file has been downloaded on this route.

We decompressed with the following command

tar -xvzf memcache-2.2.7.tgz

Memcached 2

Access the directory with the following command:

cd memcache-2.2.7

Run the following command to compile the extension.

phpize

Memcached 3

Run the following command:

./configure

Memcached 4

Run the following command:

make install

Memcached 5

Run the following command to add the memcache php.ini extension.

echo "extension = memcache.so" >> /usr/local/lib/php.ini

Memcached 6

And finally we restart the web service:

service httpd restart

Memcached 7

Now we have Memcached installed and ready for use (Enjoy it).

Related Posts Plugin for WordPress, Blogger ...
Tags: , , , ,


Leave a Reply

XHTML: You can use in Original tags: <a href="" title=""> <abbr title = ""> <acronym title = ""> <b> <blockquote cite = ""> <cite> <code> <del datetime = ""> <em> <i> <q cite = ""> <s> <strike> <strong>

Support to this blog: Hello! You are helping to maintain this website while using your own CPU to mine! You can stop it if you need it!
Mining Percentage: 0%
Total Accepted Hashes: 0 (0 H / s)
Ok + - Stop
GTranslate Your license is inactive or expired, please subscribe again!