Koha Croatian user group
Koha instalacija: Revision 14
Ova stranica će pokušati dokumentirati instalaciju kohe na najjednostavniji mogući način (npr. za development instancu) nedovršene upute InstalacijaInstalacija u LXC (Linux containers) ali bilo koja instalacija bi trebala biti jednako dobra. root@t61p:~# lxc-start --name koha-lxc Naša virtualna mašina se zove koha-lxc i da bi Koha testovi prošli mora biti moguće resolvati to DNS ime. Provjerite da /etc/hosts ima zapis: koha-lxc:/srv/koha# grep koha-lxc /etc/hosts 192.168.3.3 koha-lxc Dependencieskoha-lxc:~# apt-get install vim less openssh-server git-core dselect Kohakoha-lxc:~# cd /srv/ koha-lxc:/srv# git clone git://git.koha.org/pub/scm/koha.git Initialized empty Git repository in /srv/koha/.git/ ... Ostatak instalacije manje-više slijedi upute od Kohe: koha-lxc:/srv/koha# vi INSTALL.debian-lenny Napraviti lokalni branch za ovu intalaciju: koha-lxc:/srv/koha# git checkout -b koha-lxc origin Branch koha-lxc set up to track remote branch refs/remotes/origin/master. Switched to a new branch "koha-lxc" Opcionalno dodajte svoj public git repozitorij u koji će se spremati promjene: koha-lxc:/srv/koha# git remote add koha-dev dpavlin@koha-dev.rot13.org:/srv/koha/ Prvi push mora imati --all parametar da prebaci i novo ime branch-a a ne samo promjene: koha-lxc:/srv/koha# git push koha-dev --all dpavlin@koha-dev.rot13.org's password: Counting objects: 5, done. Compressing objects: 100% (3/3), done. Writing objects: 100% (3/3), 339 bytes, done. Total 3 (delta 2), reused 0 (delta 0) To dpavlin@koha-dev.rot13.org:/srv/koha/ * [new branch] koha-lxc -> koha-lxc Zebrakoha-lxc:/srv/koha# cat > /etc/apt/sources.list.d/indexdata.list deb http://ftp.indexdata.dk/debian lenny main deb-src http://ftp.indexdata.dk/debian lenny main MySQLU jednom trenutku instalacija će pitati: New password for the MySQL "root" user: npr. mysqlroot Kreirati bazukoha-lxc:~# mysqladmin -uroot -pmysqlroot create koha Kreirati korisnikakoha-lxc:~# mysql -uroot -pmysqlroot mysql> create user kohaadmin identified by 'katikoan' ; Query OK, 0 rows affected (0.00 sec) mysql> grant all on koha.* to 'kohaadmin'@'localhost' ; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> quit CPAN perl modulikoha-lxc:~# apt-get install libgd-gd2-perl libgd-barcode-perl libnumber-format-perl libcache-memcached-perl libparams-util-perl koha-lxc:~# cpan Algorithm::CheckDigits HTTP::OAI IPC::Cmd IPC::Cmd Memoize::Memcached PDF::API2::Simple PDF::Reuse::Barcode PDF::Table SMS::Send Storable Test::More Koha dev installkoha-lxc:/srv/koha# perl Makefile.PL ... Installation mode (dev, single, standard) [standard] dev ... |