sudo koha-shell <instance>
git clone https://github.com/bywatersolutions/ncip-server.git
exit
Install cpanminus:
curl -L https://cpanmin.us | sudo perl - App::cpanminus
Install the ncip-server dependancies using cpanm
sudo cpanm --installdeps .
sudo koha-shell <instance>
Copy the config.yml.example file to config.yml
cd ncip-server
cp config.yml.example config.yml
Edit the views: "/path/to/ncip-server/templates/"
line to point to the actual path you have the ncip-server template directory at. For whatever reason, this must be an absolute path and must be configured on a per-installation basis.
exit
Copy the init-script-template
file to your init directory. For Debian, you would copy it to init.d:
sudo cp init-script-template /etc/init.d/ncip-server
Edit the file you just created:
- Update the line
export KOHA_CONF="/path/to/koha-conf.xml"
to point to your productionkoha-conf.xml
file. - Update the line
HOME_DIR="/home/koha"
to point to the Koha home directory. For Koha package installtions, that would be /var/lib/koha/ . For git installs it will be the home directory of the user that contains the Koha git clone. - Update various other path definitions as necessary
- You may also change the port to a different port if 3001 is already being used on your server.
Configure the init script to run at boot
sudo update-rc.d ncip-server defaults
Modify you Koha Apache configuration, in the Intranet section, add the following:
ProxyPass /ncip http://127.0.0.1:3000 retry=0
ProxyPassReverse /ncip http://127.0.0.1:3000 retry=0
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
ProxyPass /ncip http://127.0.0.1:3000 retry=0
ProxyPassReverse /ncip http://127.0.0.1:3000 retry=0
sudo /etc/init.d/ncip-server start