Warning: this tutorial was developed in 2008, and is for versions of Koha and Ubuntu that are now considered quite old. If you want to install the current version of Koha on Ubuntu, please visit Koha on Ubuntu at the Koha Community wiki.
This six-part series will help you to install Koha.
Specifically, this guide is for installing Koha 3.0 on Ubuntu 8.10, but it might help you with other versions of Linux and Koha too.
These articles will begin at the ground level, walking you through the installation and configuration of an Ubuntu Linux system from scratch. By the end of the series you should have a Koha system that you can use for evaluation purposes. It’ll be a basic installation using Koha’s internal search engine rather than the more scalable (and more complex) Zebra search engine.
If you plan to put Koha into production for real-world Library use there are many other things you need to consider. The final article in the series, Going Live, discusses this further.
Oh, there are so very many reasons. Here are a few:
Just one reason:
In preparing this guide I’ve installed Koha over a dozen times, carefully documenting problems and solutions. I have significant experience in information technology and education, and I’ve tried to use my background to understand and explain what’s happening.
Commands you’ll type at a the command line (aka a terminal prompt) look like this:
sudo su
mkdir /build
cd /build
Normally Linux guides precede each command with a “shell prompt” character: a $ for commands executed as an ordinary user and a # for commands executed as a superuser (root).
Unfortunately following this convention would prevent you from easily copying and pasting commands into the terminal window, and copy-paste will spare you much time and many errors during this installation. So this guide disregards convention to make your life a little easier.
I’ve gotten great help from the Koha mailing list and you can too. If you’re installing Koha I recommend signing up for the list.
I also got help from two other installation guides, both of which appear to have been removed.I very much appreciated the help they gave me beyond Koha’s included installation files.
You’ll find much more information about Koha at Koha.org and the Koha Library Software Community website.
Part 2: Preparing Linux
There are 32 responses to this post.
By Vimal Kumar on December 22, 2008 at 12:00 am
Dear Andy,
Congrats you to wrote a very very useful Koha 3 installation for Ubuntu. My search for a nice Ubuntu-Koha documentation ends here.
Your documentation is helpful for us. We are plan to organize workshops on Koha and wish to install koha for some libraries in my city.
Thank you again,
Vimal Kumar
Asst. Librarian
Asian School of Business
India
By Andy Giesler on December 29, 2008 at 3:13 pm
Thanks for letting me know, Vimal. I’m glad to hear you’ll find my tutorial helpful.
By Ken Yap on February 2, 2009 at 8:18 am
Thanks for that tute. I did it on 8.04.2 (for the LTS) and everything worked. Well, like you I didn’t opt for Zebra.
By Ben Ostrowsky on February 2, 2009 at 4:00 pm
Thanks for writing this! There was a typo on page 7 (“Koga”); not sure if it appears anywhere else.
By Andy Giesler on February 2, 2009 at 5:06 pm
Thanks for letting me know, Ben. I’ve fixed it and confirmed it was just in that one place.
By Chuck on March 18, 2009 at 7:12 pm
Excellent guide. My eyes have gone fuzzy reading many, many install guides. This is one of the finest. Thanks!!!!
By Eric Hartnett on March 20, 2009 at 11:09 am
This is one of the best step-by-step guides I’ve ever seen for anything. Following your guide I was able to install Koha on Ubuntu 8.04 without a single problem. Thanks for your hard work.
By Hilaire DOVONON on April 6, 2009 at 8:48 am
i just gonna try that tute; it’s seems a wonderful one to taste KOHA on Ubuntu. thanks !
By Luis Olguin - Argentina on June 1, 2009 at 2:39 pm
Buenas Tardes.
Felicitaciones por este excelente tutorial acerca de Koha.
El unico inconveniente que tuve fue con la instalación de Net::Z33950::ZOOM
Aparece error al ejecutar los test.
Usando cpan force install Net::Z33950::ZOOM se puede completar la instalación?.
Agradeceré su respuesta.
Luis oLguin — Argentina
——————————–
Good evening.
Congratulations on this excellent tutorial on Koha.
The only drawback was that I had to install Net:: Z33950: ZOOM
Error appears when running the test.
Using CPAN force install Net:: Z33950: ZOOM can complete the installation?.
I would appreciate your response.
Olguin Luis — Argentina
By Shiv on June 25, 2009 at 5:04 am
excellent description works with ubuntu 9.04 also
By Shiv on June 25, 2009 at 5:07 am
u need to install by force,
> myhost # cpan
>
> cpan[1]> force install Net::Z3950::ZOOM
>
> cpan[2]> quit
> Lockfile removed.
By Ankit B on December 4, 2009 at 6:44 am
Using Ubuntu 9.04
When I open the browser :http://127.0.1.1/
It displays this
production mode — trapped fatal error
Help me it urgent
By Andy on December 5, 2009 at 2:23 am
Sorry Ankit, I’m not sure what would cause that error. A quick Google turned up this thread with some possible solutions:
http://old.nabble.com/Koha-3.0-beta-on-Kubuntu-gutsy—%22production-mode—trapped-fatal-error%22-td17071451.html
You might want to consider posting your question to the Koha mailing list. The technical people who are most active in the Koha community regularly follow that list and suggest solutions to problems. You can sign up for the Koha mailing list here: http://lists.katipo.co.nz/mailman/listinfo/koha
By Alberto on January 2, 2010 at 12:04 pm
You just saved my life. This tutorial is just what i needed. Thank you very much
By Andy on January 5, 2010 at 8:24 am
Glad I could help, Alberto. Thanks for letting me know.
By Michelle Fenger on February 14, 2010 at 10:03 pm
I installed ubuntu 9.10 and have tried to follow your EXCELLENT step by step tutorial. However, whenever I type the cd /build command, I get
bash: cd: build: No such file or directory
Any suggestions? I have wanted to try Koha for a very long time, but have very minimal linux experience so am hoping with your help and your tutorial I will be able to run a koha trial for my library.
Thank you
By Andy on February 15, 2010 at 4:14 pm
Michelle,
Thanks, glad you like the tutorial. I’ll contact you by email for more detailed diagnostic questions.
One thing I do want to post for others to see, though, is advice on Linux expertise: I’d strongly advise against trying to go live with Koha until you have easy access to someone with a good bit of Linux/Unix experience. That’s less important when setting up a sample system to play with, but I wouldn’t want to go live without a good option for on-site technical support.
By Michelle on February 15, 2010 at 6:15 pm
Andy:
Thanks for contacting me by email and I will give your suggestions a try.
I definitely take your warning to heart about having an expert in linux to help. Currently I am using this as my next step in introducing myself to linux. I’ve waited this long to get this far, I’m in no hurry to make mistakes. Thanks for your help and I’m sure I’ll be back to ask more.
By mdwafi on March 11, 2010 at 3:46 am
Hi Andy,
Nice job. Congrats…
I’ve problem when installing Perl modules. Is it any other way to install all the modules without using the CPAN?
Thank You..
By Andy on March 11, 2010 at 9:34 am
Most of my experience with modules has been using CPAN. In the one case where I couldn’t get CPAN to work I installed the module manually. There’s an example of that process at the top of the “Perl Modules” page: http://www.blazingmoon.org/guides/k3-on-u810-6.html
I’m not at all a Linux expert, though, and there might be other ways. If those two methods don’t work you might want to try posting something in a Linux help forum.
You might also find more help on the Koha mailing list. Information on signing up for the list is at http://lists.katipo.co.nz/mailman/listinfo/koha.
By Fips on March 16, 2010 at 5:07 am
Excellent write-up, and beautifully presented! Thanks for the hard work, you made installing this software at least three headaches lighter.
By Galen Charlton on April 8, 2010 at 4:57 pm
Earlier today I did some work on a Koha database installed by a library who followed your instructions. There was a minor glitch — as it turns out, sax_parser_print.pl indicated that the wrong SAX parser was being used. To resolve the problem, it was necessary to update /usr/local/share/perl/5.8.8/XML/SAX/ParserDetails.ini, rather than (as your instructions state) /etc/perl/XML/SAX/ParserDetails.ini. I’m not sure whether that was just some local circumstance or a consequence of the instruction to install XML::LibXML::SAX::Parser from CPAN, but it may be worth a note in the instructions.
By Andy on April 12, 2010 at 8:49 am
Thanks for noting that. I’ll look into it and may make an update. I do remember having more trouble with the SAX parser than any other part of the install. There might be some variation between Ubuntu installations for some reason.
By Abdullah-Al-Modabber on October 28, 2010 at 12:26 am
Thank you very much for providing such a useful tutorial.
Unfortunately I faced the following problem as I tried to login in admin page:
Koha error
The following fatal error has occurred:
Access denied for user ‘kohaadmin’@‘localhost’ (using password: YES) at /usr/share/koha/lib/C4/Context.pm line 646.
Compilation failed in require at /usr/share/koha/lib/C4/Circulation.pm line 25.
BEGIN failed–compilation aborted at /usr/share/koha/lib/C4/Circulation.pm line 25.
Compilation failed in require at /usr/share/koha/lib/C4/Overdues.pm line 24.
BEGIN failed–compilation aborted at /usr/share/koha/lib/C4/Overdues.pm line 24.
Compilation failed in require at /usr/share/koha/lib/C4/Members.pm line 27.
BEGIN failed–compilation aborted at /usr/share/koha/lib/C4/Members.pm line 27.
Compilation failed in require at /usr/share/koha/lib/C4/Auth.pm line 31.
BEGIN failed–compilation aborted at /usr/share/koha/lib/C4/Auth.pm line 31.
Compilation failed in require at /usr/share/koha/opac/cgi-bin/opac/errors/404.pl line 21.
BEGIN failed–compilation aborted at /usr/share/koha/opac/cgi-bin/opac/errors/404.pl line 21.
Could you please help me how to solve the poblem?
Abdullah-Al-Modabber
modabber@yahoo.com
By Andy on October 28, 2010 at 2:01 pm
Unfortunately I haven’t seen that error myself.
Since it seems related to permissions, it might help to review the page on installing Koha itself, especially “Configure Linux Permissions” and “Configure MySQL”, to confirm whether you went through all of the steps completely. You can find that page here (http://www.blazingmoon.org/news/2008/12/install-koha-on-ubuntu-part-4-koha/).
Also, I Googled your error message and at the top of the results were two discussion threads that seem to be about the same problem. You can find the threads here (http://koha.1045719.n5.nabble.com/Error-when-browsing-to-Koha-Admin-Page-td3063691.html#a3063691) and here (http://lists.katipo.co.nz/public/koha/2010-February/022694.html).
Finally, if that doesn’t resolve the problem, I recommend signing up for the Koha Mailing List (http://lists.katipo.co.nz/mailman/listinfo/koha) and posting your question there if you haven’t already.
Best of luck.
By Mridul Adhikary on December 1, 2010 at 11:07 pm
Is it possible to access AACR2R card format by using most update version of Koha ?
By sudath on May 1, 2011 at 4:45 am
Here i published article Install Koha on Ubuntu 10.10
each and every steps are described.
all are welcome
http://hubpages.com/hub/Install-Koha-on-Ubuntu
By sajib on November 26, 2011 at 12:47 pm
Thanks Mr. Andy bcz of this is best documentation about koha , i am trying to install koha in my organization,I think i will be todone it.
Thanks again
By mutendemari fortunate on March 13, 2012 at 9:04 am
iam very interested in using koha intergrated library system
By Install Koha on Ubuntu — Part 4: Koha » Blazing Moon on July 30, 2012 at 4:09 pm
[…] Part 1: Introduction […]
By Install Koha on Ubuntu — Part 5: Testing » Blazing Moon on July 30, 2012 at 4:10 pm
[…] Part 1: Introduction […]
By azam on February 6, 2013 at 11:28 pm
we need this software