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 ?
but without success pretty generic establishment ;-) i suggest you give us a bit more information, like, error messages, log file entries about the installation.
@ 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.
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 !
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.
@ 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
Well you need a client to talk to the server (daemon) MemcacheD is the daemon, and alot of people wrote clients for it to be used in different types of coding languages etc .. here is a complete list: http://code.google.com/p/memcached/wiki/Clients (you'll notice your pecl module for php is listed there as well 1. Hostname: the ip or hostname where your memcached server is running on Port: the post where memcached is running in (11211 is the default memcached port) Weight: is not used when you have 1 memcached server, weight is when you have 2 or more. so since you've set it to 10, you can leave it like that. 2. nah not really, the daemon is easy installed and most of the default settings are just fine, install and go Something you can try: Save thumbnails in memcached We have alot of thumbnail generation going on on our sites .. when they get called, we check it's existence in memcached, when not there, generate thumbnail, save it in memcached ... the next call will be directly from memcached since it's there, so no double generation, .. saves alot of processing on the servers .. after some time when the memory is full, it gets wipes and start over again try it!