How to activate memcached after installation?
I have already installed Koha 3.12.3. How do I activate memcached on a live installation, assuming I have also installed and running the memcached server? I assume I need to amend the SetEnv variables MEMCACHED_SERVERS and MEMCACHED_NAMESPACE in koha-httpd.conf...on some documentation, MEMCACHED_SERVERS is "127.0.0.1:11211" while on others, it is "localhost:11211" (I do know that localhost is IP address 127.0.0.1 but there is subtle difference in them when used in certain context). Also, some documentation states MEMCACHED_NAMESPACE as "KOHA" while others is "Koha" or "kohl", so which one is correct? Are there other files to modify other than the above? Maybe the koha install log file (where is it, by the way?) so that a future Koha update/upgrade will pick up the memcached configuration? -- View this message in context: http://koha.1045719.n5.nabble.com/How-to-activate-memcached-after-installati... Sent from the Koha-general mailing list archive at Nabble.com.
On 21/08/13 08:44, Victor Pang wrote:
(I do know that localhost is IP address 127.0.0.1 but there is subtle difference in them when used in certain context). Also, some documentation states MEMCACHED_NAMESPACE as "KOHA" while others is "Koha" or "kohl", so which one is correct?
I don't think localhost or 127.0.0.1 is very significant here, but if in doubt, go with localhost. MEMCACHED_NAMESPACE can be anything but it should be consistent across different files - use only one for each koha site. (kohl sounds like an overactive spellchecker got that document.)
Are there other files to modify other than the above? Maybe the koha install log file (where is it, by the way?) so that a future Koha update/upgrade will pick up the memcached configuration?
I think it's /usr/share/koha/misc/koha-install-log on a standard or package installation. Otherwise it may be in the working directory of the git checkout or wherever the installation scripts were started from. Hope that helps, -- MJ Ray (slef), member of www.software.coop, a for-more-than-profit co-op http://koha-community.org supporter, web and library systems developer. In My Opinion Only: see http://mjr.towers.org.uk/email.html Available for hire (including development) at http://www.software.coop/
I found the default values in Makefile.PL: MEMCACHED_SERVERS is 127.0.0.1:11211 while MEMCACHED_NAMESPACE is KOHA and I amend the SetEnv variables accordingly in koha-httpd.conf. Also, my Koha installation is of type "single" and installed to "/Users/koha" on Mac OS X 10.8.3, so I amended both the above variables and "Use Memcached" in "/Users/koha/misc/koha-install-log" file as well. -- View this message in context: http://koha.1045719.n5.nabble.com/How-to-activate-memcached-after-installati... Sent from the Koha-general mailing list archive at Nabble.com.
On Wed, Aug 21, 2013 at 4:19 PM, Victor Pang <victorp@netmedia.com.sg>wrote:
I found the default values in Makefile.PL: MEMCACHED_SERVERS is 127.0.0.1:11211 while MEMCACHED_NAMESPACE is KOHA and I amend the SetEnv variables accordingly in koha-httpd.conf.
Also, my Koha installation is of type "single" and installed to "/Users/koha" on Mac OS X 10.8.3, so I amended both the above variables and "Use Memcached" in "/Users/koha/misc/koha-install-log" file as well.
So you managed to install Koha on Mac OS X. Congratulations. Which version? The current stable is 3.12.3. If you already have the memcached server running on 127.0.0.1:11211 you only need to check koha-conf.xml has this in the <config> section at the bttom: <memcached_servers>127.0.0.1:11211</memcached_servers> <memcached_namespace>KOHA</memcached_namespace> Regards To+
Tomas Cohen Arazi wrote
On Wed, Aug 21, 2013 at 4:19 PM, Victor Pang <
victorp@.com
>wrote:
So you managed to install Koha on Mac OS X. Congratulations. Which version? The current stable is 3.12.3.
If you already have the memcached server running on 127.0.0.1:11211 you only need to check koha-conf.xml has this in the <config> section at the bttom:
<memcached_servers> 127.0.0.1:11211 </memcached_servers>
<memcached_namespace> KOHA </memcached_namespace>
Hmmm...I thought the tags in koha-conf.xml have been moved and they are now set in koha-httpd.conf instead, according to http://wiki.koha-community.org/wiki/Performance <http://wiki.koha-community.org/wiki/Performance> and http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6193 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6193> ? -- View this message in context: http://koha.1045719.n5.nabble.com/How-to-activate-memcached-after-installati... Sent from the Koha-general mailing list archive at Nabble.com.
Victor, On Wed, Aug 21, 2013 at 4:37 PM, Victor Pang <victorp@netmedia.com.sg> wrote:
Tomas Cohen Arazi wrote
On Wed, Aug 21, 2013 at 4:19 PM, Victor Pang <
If you already have the memcached server running on 127.0.0.1:11211 you only need to check koha-conf.xml has this in the <config> section at the bttom:
<memcached_servers> 127.0.0.1:11211 </memcached_servers>
<memcached_namespace> KOHA </memcached_namespace>
Hmmm...I thought the tags in koha-conf.xml have been moved and they are
now
set in koha-httpd.conf instead, according to http://wiki.koha-community.org/wiki/Performance <http://wiki.koha-community.org/wiki/Performance> and http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6193 <http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6193> ?
Hmm, <joke>I have to confess I forgot to take the memory pill</joke>, did you see who the patch author is? You are right, those SetEnv definitions on both the OPAC and Staff virtualhosts should do the trick. Also, you can turn on using memcached for storing sessions too, search 'SessionStorage' in the system preferences. Sorry for the confusion. Regards To+
participants (3)
-
MJ Ray -
Tomas Cohen Arazi -
Victor Pang