Installing memcache

  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Any good tutorials on installing memcache? I have cpanel, so I can configure memcache for apache, but I need to install it for php.

Many of the tutorials online, don't work, and don't explain why... (big surprize there)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

What distribution are you installing it on?
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Im on Cent os. Um what do you need to know more? How do I get my version?

I can download it and make && make install, but then it doesnt show up.

I tried this:http://www.lullabot.com/articles/how_install_memcache_debian_etch

And this: http://www.sohailriaz.com/how-to-instal ... centos-5x/

Neither seemed to match my system, as the files are not where they say they are, and testing says no command/file not found..

What do you need to type to show my system type?
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Code: [ Select ]
yum -y install memcached

Setting up Install Process
Setting up repositories
update          100% |=========================| 951 B  00:00
base           100% |=========================| 1.1 kB  00:00
addons          100% |=========================| 951 B  00:00
extras          100% |=========================| 1.1 kB  00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: memcached

Nothing to do
  1. yum -y install memcached
  2. Setting up Install Process
  3. Setting up repositories
  4. update          100% |=========================| 951 B  00:00
  5. base           100% |=========================| 1.1 kB  00:00
  6. addons          100% |=========================| 951 B  00:00
  7. extras          100% |=========================| 1.1 kB  00:00
  8. Reading repository metadata in from local files
  9. Excluding Packages in global exclude list
  10. Finished
  11. Parsing package install arguments
  12. No Match for argument: memcached
  13. Nothing to do

WTF, nothing to do
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Code: [ Select ]
root@srv1 [/usr/src/memcache-2.2.4]# make && make install
blah blah blah...

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:   /usr/local/lib/php/extensions/no-debug-non-zts-20090626/

root@srv1 [/usr/src/memcache-2.2.4]# memcached -h
-bash: memcached: command not found
  1. root@srv1 [/usr/src/memcache-2.2.4]# make && make install
  2. blah blah blah...
  3. Build complete.
  4. Don't forget to run 'make test'.
  5. Installing shared extensions:   /usr/local/lib/php/extensions/no-debug-non-zts-20090626/
  6. root@srv1 [/usr/src/memcache-2.2.4]# memcached -h
  7. -bash: memcached: command not found


Ug.
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

http://johnmccarthy.ca/phpinfo.php

Does that help at all?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Enter the following to find out your version:

Code: [ Select ]
cat /etc/issue


I'm running cent os 5.4 (final) I'll mess around and see if I can get it to work for me and post back.

Just a random thought, check to see if you have the development tools group installed.

Code: [ Select ]
yum grouplist


To install
Code: [ Select ]
yum groupinstall "Development Tools"


I found that installing that group solves almost 90% of my compiling problems.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

This guide worked for me: http://alexle.net/archives/275

I would suggest reading the entire guide through once, you'll get some errors while working and if you don't know which ones should happen you might get lost.


Heres a link to libevent: http://www.monkey.org/~provos/libevent/
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Ok I will install that, and read that.

I have a new website that will kick ass (read, my traffic is really going up now) so I figure It should start using memcache...

Here are the results

Code: [ Select ]
root@srv1 [/usr/src/memcache-2.2.4]# yum grouplist
Setting up Group Process
Setting up repositories
update          100% |=========================| 951 B  00:00
base           100% |=========================| 1.1 kB  00:00
addons          100% |=========================| 951 B  00:00
extras          100% |=========================| 1.1 kB  00:00
yumgroups.xml       100% |=========================| 710 kB  00:00
yumgroups.xml       100% |=========================| 4.6 kB  00:00
Installed Groups:
  Administration Tools
  Compatibility Arch Support
  DNS Name Server
  Editors
  Graphics
  Server Configuration Tools
  System Tools
  Text-based Internet
Available Groups:
  AptRPM
  Authoring and Publishing
  Compatibility Arch Development Support
  Development Tools
  Engineering and Scientific
  FTP Server
  GNOME Desktop Environment
  GNOME Software Development
  Games and Entertainment
  Graphical Internet
  Horde-Apps
  KDE (K Desktop Environment)
  KDE Software Development
  Legacy Network Server
  Legacy Software Development
  Mail Server
  MySQL Database
  Network Servers
  News Server
  Office/Productivity
  OpenFabrics Enterprise Distribution
  PostgreSQL Database
  Printing Support
  Sound and Video
  Web Server
  Windows File Server
  X Software Development
  X Window System
  XFCE-4.2
  drbd-heartbeat
Done
  1. root@srv1 [/usr/src/memcache-2.2.4]# yum grouplist
  2. Setting up Group Process
  3. Setting up repositories
  4. update          100% |=========================| 951 B  00:00
  5. base           100% |=========================| 1.1 kB  00:00
  6. addons          100% |=========================| 951 B  00:00
  7. extras          100% |=========================| 1.1 kB  00:00
  8. yumgroups.xml       100% |=========================| 710 kB  00:00
  9. yumgroups.xml       100% |=========================| 4.6 kB  00:00
  10. Installed Groups:
  11.   Administration Tools
  12.   Compatibility Arch Support
  13.   DNS Name Server
  14.   Editors
  15.   Graphics
  16.   Server Configuration Tools
  17.   System Tools
  18.   Text-based Internet
  19. Available Groups:
  20.   AptRPM
  21.   Authoring and Publishing
  22.   Compatibility Arch Development Support
  23.   Development Tools
  24.   Engineering and Scientific
  25.   FTP Server
  26.   GNOME Desktop Environment
  27.   GNOME Software Development
  28.   Games and Entertainment
  29.   Graphical Internet
  30.   Horde-Apps
  31.   KDE (K Desktop Environment)
  32.   KDE Software Development
  33.   Legacy Network Server
  34.   Legacy Software Development
  35.   Mail Server
  36.   MySQL Database
  37.   Network Servers
  38.   News Server
  39.   Office/Productivity
  40.   OpenFabrics Enterprise Distribution
  41.   PostgreSQL Database
  42.   Printing Support
  43.   Sound and Video
  44.   Web Server
  45.   Windows File Server
  46.   X Software Development
  47.   X Window System
  48.   XFCE-4.2
  49.   drbd-heartbeat
  50. Done
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Ok so I got so far as to get yum to report the following:

yum -y install memcached


--> Processing Dependency: rtld(GNU_HASH) for package: memcached
--> Processing Dependency: libc.so.6(GLIBC_2.4) for package: memcached
--> Processing Dependency: libevent-1.1a.so.1 for package: memcached
--> Finished Dependency Resolution
Error: Missing Dependency: rtld(GNU_HASH) is needed by package memcached
Error: Missing Dependency: libc.so.6(GLIBC_2.4) is needed by package memcached
Error: Missing Dependency: libevent-1.1a.so.1 is needed by package memcached



Now what?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

I compiled memcache from source and didn't use yum, but did you install the development tools group?
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

I am able to compile memcache from source. make and make install.

But it doesnt install anyplace. And I can't find where it puts itself even if it does.

I am good php programmer, and a lousy admin.
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Run
Code: [ Select ]
find / -name memcache\*
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Here is the result
Code: [ Select ]
#find / -name memcache\*

/root/tmp/pear/cache/memcached-1.0.0
/root/tmp/pear/cache/memcached-1.0.0/memcached-api.php
/root/tmp/pear/cache/memcached-1.0.0.tgz
/var/cache/yum/rpmforge/headers/memcached-1.2.6-1.el5.rf.i386.hdr
/usr/local/cpanel/base/horde/lib/Horde/SessionHandler/memcache.php
/usr/local/cpanel/base/horde/lib/Horde/SessionHandler/memcached.php
/usr/local/lib/php/doc/memcached
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
/usr/src/memcache-2.2.4
/usr/src/memcache-2.2.4/memcache.dsp
/usr/src/memcache-2.2.4/memcache.php
/usr/src/memcache-2.2.4/memcache_session.lo
/usr/src/memcache-2.2.4/memcache_consistent_hash.c
/usr/src/memcache-2.2.4/memcache_standard_hash.c
/usr/src/memcache-2.2.4/memcache.la
/usr/src/memcache-2.2.4/memcache_session.c
/usr/src/memcache-2.2.4/memcache_queue.c
/usr/src/memcache-2.2.4/.libs/memcache.la
/usr/src/memcache-2.2.4/.libs/memcache.o
/usr/src/memcache-2.2.4/.libs/memcache_consistent_hash.o
/usr/src/memcache-2.2.4/.libs/memcache.so
/usr/src/memcache-2.2.4/.libs/memcache_session.o
/usr/src/memcache-2.2.4/.libs/memcache_standard_hash.o
/usr/src/memcache-2.2.4/.libs/memcache_queue.o
/usr/src/memcache-2.2.4/.libs/memcache.lai
/usr/src/memcache-2.2.4/memcache_consistent_hash.lo
/usr/src/memcache-2.2.4/memcache.lo
/usr/src/memcache-2.2.4/memcache.c
/usr/src/memcache-2.2.4/memcache_queue.lo
/usr/src/memcache-2.2.4/modules/memcache.so
/usr/src/memcache-2.2.4/memcache_standard_hash.lo
/usr/src/memcache-2.2.4/memcache_queue.h
/usr/src/memcache-2.2.4.tgz
/etc/sysconfig/memcached
/home/cpeasyapache/src/httpd-2.2.14/srclib/apr-util/memcache
  1. #find / -name memcache\*
  2. /root/tmp/pear/cache/memcached-1.0.0
  3. /root/tmp/pear/cache/memcached-1.0.0/memcached-api.php
  4. /root/tmp/pear/cache/memcached-1.0.0.tgz
  5. /var/cache/yum/rpmforge/headers/memcached-1.2.6-1.el5.rf.i386.hdr
  6. /usr/local/cpanel/base/horde/lib/Horde/SessionHandler/memcache.php
  7. /usr/local/cpanel/base/horde/lib/Horde/SessionHandler/memcached.php
  8. /usr/local/lib/php/doc/memcached
  9. /usr/local/lib/php/extensions/no-debug-non-zts-20090626/memcache.so
  10. /usr/src/memcache-2.2.4
  11. /usr/src/memcache-2.2.4/memcache.dsp
  12. /usr/src/memcache-2.2.4/memcache.php
  13. /usr/src/memcache-2.2.4/memcache_session.lo
  14. /usr/src/memcache-2.2.4/memcache_consistent_hash.c
  15. /usr/src/memcache-2.2.4/memcache_standard_hash.c
  16. /usr/src/memcache-2.2.4/memcache.la
  17. /usr/src/memcache-2.2.4/memcache_session.c
  18. /usr/src/memcache-2.2.4/memcache_queue.c
  19. /usr/src/memcache-2.2.4/.libs/memcache.la
  20. /usr/src/memcache-2.2.4/.libs/memcache.o
  21. /usr/src/memcache-2.2.4/.libs/memcache_consistent_hash.o
  22. /usr/src/memcache-2.2.4/.libs/memcache.so
  23. /usr/src/memcache-2.2.4/.libs/memcache_session.o
  24. /usr/src/memcache-2.2.4/.libs/memcache_standard_hash.o
  25. /usr/src/memcache-2.2.4/.libs/memcache_queue.o
  26. /usr/src/memcache-2.2.4/.libs/memcache.lai
  27. /usr/src/memcache-2.2.4/memcache_consistent_hash.lo
  28. /usr/src/memcache-2.2.4/memcache.lo
  29. /usr/src/memcache-2.2.4/memcache.c
  30. /usr/src/memcache-2.2.4/memcache_queue.lo
  31. /usr/src/memcache-2.2.4/modules/memcache.so
  32. /usr/src/memcache-2.2.4/memcache_standard_hash.lo
  33. /usr/src/memcache-2.2.4/memcache_queue.h
  34. /usr/src/memcache-2.2.4.tgz
  35. /etc/sysconfig/memcached
  36. /home/cpeasyapache/src/httpd-2.2.14/srclib/apr-util/memcache


The /usr/src version is the version I downloaded and compiled. The /etc/sysconfig/memcached is a file that the tutorial said to create.

From this, I see I have no executable...
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Also, I installed yum groupinstall "Development Tools"

Before, uptime was 0.45, 0.34, 0.21
Now, uptime is 2.45, 3.34, 2.21

How do I uninstall the development tools? :-(
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

Code: [ Select ]
yum groupremove "Development Tools"
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

Wow, this tutorial worked!!!

http://codelikezell.com/how-to-install- ... on-centos/

Memcache installed. Now just gotta figure out how to use it etc...
  • camperjohn
  • Guru
  • Guru
  • User avatar
  • Posts: 1127
  • Loc: San Diego

Post 3+ Months Ago

WOOHO ITS WORKING

php -i | grep php.ini to fine ini file
added extension=memcache.so to php.ini
restart apache (httpd)

It's working. Thanks for your motivation.

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: No registered users and 76 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.