[Koha-bugs] [Bug 13791] Plack - Out of the box support on packages

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 20 19:09:58 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13791

--- Comment #34 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #33)
> root at koha-deb:/usr/sbin# koha-plack --disable library
> Plack disabled for library
> root at koha-deb:/usr/sbin# koha-plack --enable library
> Plack already enabled for library
> 
> hum?
> 
> Not sure I have tested correctly, back on this one tomorrow.

Hi Jonathan!

1) It seems to me that the script is not catching the absense of the relevant
line on your site's virtualhosts definition. This could be a bug in
koha-functions.sh (is_plack_enabled). Probably not using the right
koha-functions.sh (look at (4).

2) You should be looking  at /var/log/koha/<instance>/plack-output.log to know
if you are on plack. But you should notice, you know... it is slightly super
faster. When you have plack enabled a line like this is uncommented in
/etc/apache2/sites-enabled/<instance>.conf:

OPAC:
# Include /etc/koha/apache-shared-opac-plack.conf

Intranet:
# Include /etc/koha/apache-shared-intranet-plack.conf

Those files need to be present in those dirs (look at (4) for details).

3) You need to know that koha-plack --enable <instance> is not starting the
daemon for now, so you need to issue koha-plack --start <instance> to have it
running. This is independent from the Apache conf hook, so Plack might be
running but not being used. You can ps waux | grep starman (there should be a
master process with two workers).

4) Where the files are put is really important because they are picked to
generate a suitable apache configuration, otherwise it won't work.:

debian/templates/apache-shared-*-plack.conf -> /etc/koha
debian/templates/apache-site.conf.in -> /etc/koha
debian/koha-common.bash-completion -> /etc/bash_completion.d/koha-common
debian/scripts/koha-functions.sh -> /usr/share/koha/bin
debian/scripts/koha-* -> /usr/sbin

The template files need to be put in place BEFORE the instance is created.

I think I'll build the packages for this so testing is pretty easier. Also note
that you need to install
- starman
- libplack-middleware-reverseproxy-perl

Thanks for your time testing this!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list