Hi all,

Progress. James' suggestion to change the && instances to && in 
opac-plack.sh (as well as intranet-plack.sh, unlock-intranet-plack.sh and 
unlock-opac-plack.sh) did the trick - no more syntax errors. However, my output 
after restarting koha-common is now:

root@vps43351:~service koha-common restart
* Restarting Koha ILS koha-common
Stopping Zebra server for library
Stopping Plack servers for library
Servers stopped
SIP server for library not running.
Starting Zebra server for library
Starting OPAC Plack server for library
Waiting for OPAC Plack socket for library
Couldn't open log file "/var/log/koha/library/opac-error.log" [Permission 
denied]. at /usr/share/perl5/Net/Server.pm line 212.
OPAC Plack socket open for library
Starting Intranet Plack server for library
Waiting for Intranet Plack socket for library
Couldn't open log file "/var/log/koha/library/intranet-error.log" [Permission 
denied]. at /usr/share/perl5/Net/Server.pm line 212.
Intranet Plack socket open for library
This looks like a permissions issue, but I am unsure about how to properly 
correct this as I thought that working in root would avoid any such issue. Both 
error logs have root as their owner with 644 permission (the only other owner 
being library-koha on my server)

SO,

At this point, I have the following outcomes:

1. Visiting library.craigbutosi.ca:5000 gives an "unable to connect" browser 
page (apache configuration issue perhaps?);
2. Running plackup to test Plack using

     KOHA_CONF=/etc/koha/sites/library/koha-conf.xml 
PERL5LIB=/usr/share/koha/lib sudo -u library-koha -E plackup --reload 
/usr/share/koha/misc/plack/koha.psgi

and then visiting library.craigbutosi.ca:5000 leads to a (never before seen) 
"not found" message on the page; the command-line output after running plackup 
is

    174.118.34.28 - - [04/Oct/2015:22:35:38 -0400] "GET / HTTP/1.1" 404 9 "-" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0"

I get the impression that I need to configure my apache sites file for a 
redirect, as mentioned on http://wiki.koha-community.org/wiki/Plack, no?

Thanks for your time everyone!

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

________________________________________
From: Koha [[email protected]] on behalf of Mason James 
[[email protected]]
Sent: Sunday, October 04, 2015 8:30 PM
To: [email protected]
Subject: Re: [Koha] Koha 3.20 and Plack Server

On 15-10-5 12:13 pm, Craig Butosi wrote:
> Hi all,
>
> I'm tinkering with Plack on Koha 3.20.04 (Ubuntu x64 14.04 LTS). I followed 
> the (somewhat outdated) instructions here: 
> http://www.generalthreat.com/2013/04/serving-koha-common-with-plack/ and made 
> sure that my pathways were corrected in the scripts. I'm using the port 5000 
> option rather than the unix socket option. After restarting koha-common, I 
> received the following output:
>
>

> /usr/share/koha/misc/plack/opac-plack.sh: 5: 
> /usr/share/koha/misc/plack/opac-plack.sh: Syntax error: "&" unexpected

> The above looks as if Plack is up and running, but the syntax warning for 
> opac-plack.sh is puzzling. I'm not entirely sure whether there is a syntax 
> error in the code; everything looks correct, but I could be missing something 
> here. Does anyone have any suggestions or advice on how to proceed? I'd love 
> to get Plack up and running to see the performance difference. If there's a 
> better way to install Plack or configure it for 3.20, I am all ears too!
>
> My opac-plack.sh file is as follows:
>
> #!/bin/sh
> # --max-requests = decreased from 1000 to 50 to keep memory usage sane
> # --workers = number of cores on machine
>
> test ! -z "$1" && site=$1 && shift

hmm, i think line 5 should be..
test ! -z "$1" && site=$1 && shift

not...
test ! -z "$1" && site=$1 && shift



_______________________________________________
Koha mailing list http://koha-community.org
[email protected]
https://lists.katipo.co.nz/mailman/listinfo/koha


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.
_______________________________________________
Koha mailing list  http://koha-community.org
[email protected]
https://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to