Hi,

We at Biblibre are using the dev install to run from git sources (in /home/koha/src).

We have a SystemD unit for plack/starman.
You can adapt it.
Then edit your Apache configuration to use Starman as backend.

Best regards,

Le 03/03/2022 à 03:56, vinod kumar a écrit :
Hello Friends,

I am a library professional and have been using Koha in my library for the
last 2 years. I have Koha 20.05.05 installed on Ubuntu 20.04. I have
installed Koha using source tar package and not using koha-common
installation. I have studied various koha articles to use in Koha to boost
speed. But in all articles, enabling plack steps given only for koha-common
installation only, using koha-plack command. In my case, I have installed
Koha using tar source package, so no such commands were found.
Can Anyone guide me how to enable the plack  package for Koha tar source
package installation. I will be thankful to you.
Thanks,
_______________________________________________

Koha mailing list  http://koha-community.org
k...@lists.katipo.co.nz
Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha

--
Fridolin SOMERS <fridolin.som...@biblibre.com>
Software and system maintainer 🦄
BibLibre, France
[Unit]
Description=Starman Service
After=__WEBSERVER__.service
After=memcached.service

[Service]
Type=forking
PIDFile=/home/koha/var/run/plack.pid
EnvironmentFile=/home/koha/etc/plack.cfg
ExecStopPost=/bin/rm /home/koha/var/run/plack.sock
ExecReload=/bin/kill -HUP ${MAINPID}
ExecStartPre=/bin/bash -c '\
if [ ! -d /tmp/cgisess_koha ];then /bin/mkdir /tmp/cgisess_koha && /bin/chown www-data:www-data /tmp/cgisess_koha;fi;\
/bin/chmod g+w /tmp/cgisess_koha\
'
ExecStart=/usr/bin/starman\
 -M FindBin\
 --daemonize\
 --max-requests ${STARMAN_MAXREQ}\
 --workers ${STARMAN_WORKERS}\
 --disable-keepalive\
 --user=www-data\
 --group=www-data\
 --error-log=/home/koha/var/log/plack-error.log\
 -E deployment\
 --socket /home/koha/var/run/plack.sock\
 --pid /home/koha/var/run/plack.pid\
 /home/koha/etc/plack.psgi

[Install]
WantedBy=multi-user.target
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : https://www.koha-community.org/
git : https://git.koha-community.org/
bugs : https://bugs.koha-community.org/

Reply via email to