[Koha] error installing koha
alok at prl.res.in
Fri Jun 13 18:24:07 NZST 2008
I try to install koha on RHEL4.
while installing I got the following error message.
[root at n0cc2 koha-2.2.8]# perl installer.pl
WELCOME TO THE KOHA INSTALLER
This program will ask some questions and try to install koha for you. You
need to know: where most koha files should be stored (you can set the
prefix environment variable for this); the username and password of a mysql
superuser; and details of your library setup. You may also need to know
details of your Apache setup.
If you want to install the Koha configuration files somewhere other than
/etc (for installing not as root, or to have many Kohas on one system, for
example), you should set the etcdir environment variable. Please look at
your manuals for details of how to set that.
Recommended answers are given in brackets after each question. To accept
the default value for any question (indicated by ), simply hit Enter at
Note that you also can define an auto_install_file, that will answer every
question automatically. To use this feature, run ./installer.pl -i
Are you ready to begin the installation? ([Y]/N):
Checking perl modules ...
PERL MODULES AVAILABLE
All required perl modules are installed.
Press <ENTER> to continue:
Please supply the directory you want Koha to store its OPAC files in. This
directory will be auto-created for you if it doesn't exist.
OPAC Directory [/usr/local/koha/opac]:
Please supply the directory you want Koha to store its Librarian interface
files in. This directory will be auto-created for you if it doesn't exist.
Intranet Directory [/usr/local/koha/intranet]:
Specify a directory where log files will be written.
Koha Log Directory [/usr/local/koha/log]:
Please provide the name that you wish to give your koha database. It must
not exist already on the database server.
Most users give a short single-word name for their library here.
Database name [Koha]:
Please provide the mysql server name. Unless the database is stored on
another machine, this should be "localhost".
Database host [localhost]:
We are going to create a new mysql user for Koha. This user will have full
administrative rights to the database called Koha when they connect from
localhost. This is also the name of the Koha librarian superuser.
Most users give a single-word name here.
Database user [kohaadmin]:
Please provide a good password for the user kohaadmin.
IMPORTANT: You can log in using this user and password at any time.
Password for database user kohaadmin: koha123
Koha needs to write an Apache configuration file for the OPAC and Librarian
sites. By default this installer will do this by using one name and two
different ports for the virtual hosts. There are other ways to set this up,
and the installer will leave comments in /etc/koha-httpd.conf about them.
NOTE: You will need to add lines to your main httpd.conf to include
/etc/koha-httpd.conf (using the Include directive) and to make sure it is
listening on the right ports and host names (using the Listen directive).
Press <ENTER> to continue:
WEB E-MAIL CONTACT
Enter the e-mail address to be used as a contact for Koha. This address is
displayed if fatal errors are encountered.
E-mail contact [webmaster at abc.edu]:
WEB HOST NAME OR IP ADDRESS
Please enter the host name or IP address that you wish to use for koha.
Normally, this should be a name or IP that belongs to this machine.
Host name or IP Address [n0cc2.abc.edu]:
Please enter the port for your OPAC interface. This defaults to port 80,
but if you are already serving web content with this hostname, you should
change it to a different port (8000 might be a good choice, but check any
Enter the OPAC Port :
Please enter the port for your Librarian interface. This must be different
from the OPAC port (80).
Enter the Intranet Port :
UPDATING APACHE CONFIGURATION
Checking for modules that need to be loaded...
Copying files to installation directories:Copying admin templates to
Copying admin interface to /usr/local/koha/intranet/cgi-bin.
Copying main scripts to /usr/local/koha/intranet/scripts.
Copying perl modules to /usr/local/koha/intranet/modules.
Copying OPAC templates to /usr/local/koha/opac/htdocs.
Copying OPAC interface to /usr/local/koha/opac/cgi-bin.
MYSQL ROOT USER PASSWORD
To create the koha database, please enter your mysql server's root user
Creating the MySQL database for Koha...
ERROR 1045 (28000): Access denied for user 'kohaadmin'@'localhost' (using
DBI connect('Koha:localhost','kohaadmin',...) failed: Access denied for
user 'kohaadmin'@'localhost' (using password: YES) at
/usr/local/koha/intranet/modules/C4/Context.pm line 411
Can't call method "prepare" on an undefined value at
scripts/updater/updatedatabase line 1553.
Problem updating database...
[root at n0cc2 koha-2.2.8]#
CAN SOMEBODY HELP ME.
Thanks in advance.
More information about the Koha