Configure Linux Permissions
Using Webmin (or another method if you prefer) create a user named “koha” and add it to a group named “koha”:- System > Users and Groups
- “Create new user” link (above the “Delete/Disable/Enable Selected Users” button)
- Username: koha
- Real name: Koha User
- Password (Normal Password): {enter a koha admin password here}
- Group Membership > Primary Group > New Group: koha
- Create
Configure MySQL
These instructions assume you’re using Webmin to configure MySQL. If you’re more comfortable with another tool or the shell prompt, that’s fine too.Before you can administer MySQL through Webmin it will prompt you for the MySQL administrative login. The user should be “root”, and the password is the one you created earlier when configuring LAMP.
First create a new Koha administrative user with all permissions on your server, localhost: Servers > MySQL Database Server > User Permissions (under “Global Options”) > Create new user (at the top of the page). Fill in the prompts as follows:
Username: { choose a koha administrator name — one word }
Password: { choose a koha administrator password}
Hosts: localhost
Permissions: all permissions
[Create]
Database name: koha
[Create]
Databases: Selected (koha)
Username: { enter the koha administrator name from above }
Hosts: from host permissions
Permissions: all permissions
Install Koha
At last!Verify SAX Parser
Confirm your system is using the correct SAX parser (XML::LibXML). After running the following command you should see something like “XML::LibXML::SAX::Parser=HASH(0x81f0a74)”.cd /build/koha-3.00.00/misc
./sax_parser_print.pl
locate ParserDetails.ini
gedit /etc/perl/XML/SAX/ParserDetails.ini
While the above file location will be correct for some Ubuntu installations, it isn’t the right location for all of them. That’s why we did the “locate ParserDetails.ini” command above. Use the results of that command to figure out the location of the ParserDetails.ini file on your system. If you find multiple copies of the file, consider editing both of them.
The file should have one or more sections that look something like “[XML::LibXML::SAX::Parser]” followed by one or more lines of settings. To use the right parser, move the “[XML::LibXML::SAX::Parser]” section (including the settings that follow it) to the bottom of the file, then retest:
./sax_parser_print.pl
Install Koha Files
First we need to make the Koha application.The perl Makefile.pl command will run for several minutes, ask you several questions, and generate e-reams of diagnostic text. In general you’ll do well to accept the default answers.
When prompted “Please specify the name of the user that owns the database to be used by Koha”, provide login information for the koha MySQL user you created earlier on this page. The make test and make install commands will also run for several minutes but you won’t need to answer any prompts.
sudo su
cd /build/koha-3.00.00
perl Makefile.PL
make
make test
make install
ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha
a2enmod rewrite
a2ensite koha
gedit /etc/apache2/ports.conf
Listen 8080
/etc/init.d/apache2 restart
No comments:
Post a Comment