#1  
Old 7th July 2009, 12:53
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default memcached

Gentlemen,

I have a Fedora 10 server with ISPConfig 3.0.1.3 and for webmail I use B1gmail
For performance of B1gmail it is recommended to use memcached.

I tried to install memcached but without success
Does anyone know how to do it ?
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
Sponsored Links
  #2  
Old 7th July 2009, 12:55
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

but without success
pretty generic establishment ;-)

i suggest you give us a bit more information, like, error messages, log file entries about the installation.
Reply With Quote
  #3  
Old 7th July 2009, 14:27
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

@ Mark,

I used yum install memcached and it needed to download memcached-1.2.8.fc10 ( or something like that )

It installed without errors ( as far as I know ) and I was able to start memcached using "/etc/init.d/memcached start"

After that I expected B1gmail to detect memcached is available so I could select this option, but B1gmail did not detect memcached.
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
  #4  
Old 7th July 2009, 14:52
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

Update : Solved !

Google, my other best friend, found an other solution.

Not use:
Code:
 tar -zxvf memcached-1.x.x.tar.gz
 ./configure --enable-threads (you probably want threads)
 make
 make test
 sudo make install
or
Code:
yum install memcached
but use:
Code:
wget http://pecl.php.net/get/memcache-2.1.2.tgz
gzip -df memcache-2.1.2.tgz
tar -xvf memcache-2.1.2.tar
cd memcache-2.1.2
phpize
./configure
make
make install
add extension=memcache.so to php.ini
And everything is working !
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb

Last edited by robertlouwen; 17th May 2010 at 16:40.
Reply With Quote
  #5  
Old 7th July 2009, 15:31
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

hehe, you need the memcache module for php as well.

memcached = the daemon
memcache = the client (shapes in multiple ways. f.e. perl or php modules)

yum install memcached

is just the daemon

memcache is very neat btw. we have 2 of them as well, it's perfect for us, since we have like 50 webservers loadbalanced, so people keep theire sessions even when switching from server.
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
robertlouwen (7th July 2009)
  #6  
Old 7th July 2009, 16:26
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

@ Mark,

If I understand you, you need both; Memcached won't work without Memcache and Memcache won't work without Memcached !

It looks like you know more than something about memcache So I have two other questions

1. Now I have enabled memcache for B1gmail it wants to know the hostname, port and weight.
For hostname I used the name of my webserver, port 80 (default http port ) for weight I don't know and used 10

When I look at phpinfo.php it says "default_memcache_port 11211" So I think I have to change it to 11211 in B1gmail and open this port in my firewall

2. Some configuration / optimization tips

Thank you Mark
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
Reply

Bookmarks

Tags
fedora 10, ispconfig 3.0.1.3, memcached

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.