[Koha] Enabling Memcached on Koha 3.18.06
Craig Butosi
craig.butosi at rcmusic.ca
Wed May 6 00:57:50 NZST 2015
Yes! You need to set the relevant variables on the instance's apache virtualhosts configuration file.
You are welcome!
Thank you for clarifying Tomas. Your suggestion worked. So in all, the steps I took were:
1. Install memcached (sudo apt-get install memcached)
2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no'
3. Restarted Apache (service apache2 restart)
4. Check memcached server connection (telnet localhost 11211) - Successful
5. Installed libmemcached-tools to test if koha is memcached at this point (sudo apt-get install libmemcached-tools) - Unsuccessful
6. Navigated to /etc/apache2/sites-available/library.conf and added the memcached server <IP:Port> and a memcached name (in my case: 127.0.0.1:11211 and koha_library)
7. Restarted Apache (service apache2 restart)
8. Ran memcdump to test if instance is memcached (memcdump --servers localhost)
9. Output is as follows:
root at vps43351:~# memcdump --servers localhost
koha_libraryismemcached
koha_library569c3d3a6db71bb72dedcf5be25e27fe
koha_library095f4ee0d58b7919fb213439ad1a531d
koha_library9e4a3f110dd37561d60ae982a38f274d
koha_librarykohaconf
Thanks for the help all. You guys are great.
Best,
Craig Butosi, MA, MLIS, B Mus (Hons.)
LIBRARY SERVICES MANAGER
the royal conservatory
TELUS Centre for Performance and Learning
273 Bloor Street West Toronto, ON M5S 1W2
416.408.2824 x338
www.rcmusic.ca<https://webmail.rcmusic.ca/owa/redir.aspx?C=b481823b299d45ee94b0016389bb76e9&URL=http%3a%2f%2fwww.rcmusic.ca%2f>
________________________________
From: Tomas Cohen Arazi [tomascohen at gmail.com]
Sent: Monday, May 04, 2015 10:26 PM
To: Craig Butosi
Cc: koha
Subject: Re: [Koha] Enabling Memcached on Koha 3.18.06
El 4/5/2015 6:12 p. m., "Craig Butosi" <craig.butosi at rcmusic.ca<mailto:craig.butosi at rcmusic.ca>> escribió:
> 1. Installed memcached
>
> sudo apt-get install memcached
Good
> 2. Navigated to /etc/koha/koha-sites.conf and changed MEMCACHED environment variable to 'yes' from 'no'
Wrong. Explanation: that configuration variable controls wether memcached is enabled on each created instance, ON CREATION TIME. So already created instances won't use memcached unless you explicitly created it using the --use-memcached option switch.
> Any thoughts on why Koha is not showing up after running #6?
Yes! You need to set the relevant variables on the instance's apache virtualhosts configuration file.
You are welcome!
Note: This email message and any attachments are intended only for the use of the individual to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the recipient of this email is not the intended recipient (or the employee or agent responsible for delivering the email to the intended recipient), you are hereby notified that any review, dissemination, distribution or copying or other use of this message is strictly prohibited. If you have received this communication in error, please notify the sender immediately by return email and delete this message and attachments from your system, thank you.
More information about the Koha
mailing list