XMPP JavaScript Library

How to install memcache on linux box

Linux, Sachin Puri, 2012-01-17 16:22:42

To install memcache you should have "libevent".

Follow following steps to install libevent:

Step 1: Download libevent using following command

wget https://github.com/downloads/libevent/libevent/libevent-2.0.16-stable.tar.gz

Step 2: tar -zxvf libevent-2.0.16-stable.tar.gz

Step 3: cd libevent-2.0.16-stable

Step 4: ./configure

Step 5: make

Step 6: make install

Step 7: Create a symbolic link

ln -s /usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5

That's it now you are ready to install memcache

 

Now, Follow following steps to install memcache

Step 1: Download memcache using following command

wget http://memcached.org/latest

Step 2: tar -zxvf memcached-1.4.13.tar.gz

Step 3: cd memcached-1.4.13

Step 4: ./configure

Step 5: make

Step 6: make install

Step 7: run following command to start memcache server

memcached -d -u memcache_user -p 11211 -m 1024 -l 127.0.0.1

where: -

-d daemon

-u username

-p port

-m memory

-l ip to listen

now your memcache server should run, don't get excited there is some more work to do. Now you have to install PHP memcache extension so that you can start writing memcache code in your PHP files.

Follow following steps to install memcache PHP extension

Step 1: Download memcache PHP extension

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

Step 2: tar -zxvf memcached-2.2.4.tgz

Step 3: cd memcached-2.2.4

Step 4: phpize && ./configure --enable-memcache

Step 5: make

Step 6: copy modules/memcache.so to your PHP extension directory (see php.ini file and search for extension_dir to know your PHP extension directory path)

Step 7: open your php.ini file and add following line

extension=memcache.so


Please feel free to ask any question related to this article.

Add Your Comment
   
    Yes! I want to receive all comments by email

  by asa on 25-Mar-2019 11:04 am
I recently found many useful information in your website especially this blog page. Among the lots of comments on your articles. Thanks for sharing. GET YOUR OWN MONEY
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aaa on 23-Mar-2019 03:58 pm
thank you for your interesting infomation. heating and air condition
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by asa on 22-Mar-2019 02:56 pm
thank you for your interesting infomation. pozycjonowanie stron www
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aa on 22-Mar-2019 11:06 am
nice bLog! its interesting. thank you for sharing.... click
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aa on 20-Mar-2019 06:55 pm
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information. personal injury attorney
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aa on 20-Mar-2019 12:55 pm
thank you for your interesting infomation. Buy Sibutramine online
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by a on 17-Mar-2019 03:43 pm
Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information. Ecstasy pills Online
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by hareem on 17-Mar-2019 03:47 am
i love reading this article so beautiful!!great job!, tattoo website template
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by asa on 13-Mar-2019 10:05 pm
nice bLog! its interesting. thank you for sharing.... PPT Fitness and Nutrition
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sa on 12-Mar-2019 06:13 pm
nice bLog! its interesting. thank you for sharing.... papel de parede masculino
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by ass on 11-Mar-2019 05:54 pm
i really like this article please keep it up. check here
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sas on 10-Mar-2019 10:56 pm
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. Shake roof contractor
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aa on 08-Mar-2019 01:29 pm
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. best price
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aa on 08-Mar-2019 12:25 am
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. college paper
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sa on 07-Mar-2019 08:28 pm
i really like this article please keep it up. sports leadership
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aa on 07-Mar-2019 12:43 pm
i love reading this article so beautiful!!great job! Traffic Ivy Boost Social Signals
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by aa on 06-Mar-2019 02:36 pm
i really like this article please keep it up. help
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by asas on 05-Mar-2019 11:40 pm
this is really nice to read..informative post is very good to read..thanks a lot! cara reset xiaomi
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Hassan on 05-Mar-2019 09:52 pm
Type your comment...If more people that write articles involved themselves with writing great content like you, more readers would be interested in their writings. I have learned too many things from your article. locksmith Arvada
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by sas on 05-Mar-2019 06:52 pm
i really like this article please keep it up. Buy Instagram Followers
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by Lori Lucas on 02-Mar-2019 05:51 pm
Believe it or not, it is the type of information I’ve long been trying to find. It matches to my requirements a lot. Thank you for writing this information. cheap locksmith Boulder
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by zakizak on 02-Mar-2019 01:29 am
thank you noticeably a lot for writing such a fascinating article on this concern. This has surely made me think and that i pressure to feasible more.Freelance Copywriting Services
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by xasd on 26-Feb-2019 12:00 pm
thank you for your interesting infomation. judi qq online
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by dad on 25-Feb-2019 11:19 pm
i love reading this article so beautiful!!great job! essay writers service
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by xawd on 25-Feb-2019 11:36 am
i love reading this article so beautiful!!great job! dubai artificial grass
  • Reply
  •  0 Like
  •  0 Dislike
  • Report
  by NameFintalk on 23-Oct-2018 02:58 pm
Nice Informative Blog having nice sharing..
  • Reply
  •  1 Like
  •  1 Dislike
  • Report