sudo koha-shell <instance>git clone https://github.com/bywatersolutions/ncip-server.gitexitInstall cpanminus:
curl -L https://cpanmin.us | sudo perl - App::cpanminusInstall 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.ymlEdit 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.
exitCopy 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-serverEdit the file you just created:
- Update the line
export KOHA_CONF="/path/to/koha-conf.xml"to point to your productionkoha-conf.xmlfile. - 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 defaultsModify 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=0LoadModule 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=0sudo /etc/init.d/ncip-server start