[Koha] hard coded paths in Output.pm

Matthew Kelly (CPL) Matthew.Kelly at press.co.nz
Mon Aug 21 09:17:11 NZST 2000


To get the whole thing to run I have done the following.
Linux
· Downloaded the following to  /usr/local/src/project
· Data-Dumper-2_101_tar.gz
· DBI-1.13.tar.gz
· Msql-Mysql-modules-1_2209_tar.gz
· MySQL-3.22.32-1.i386.rpm
· MySQL-3_22_32-1_src.rpm
· MySQL-bench-3.22.32-1.i386.rpm
· MySQL-client-3.22.32-1.i386.rpm

Mysql installation

MySQL Installation (From Source Distribution)
Using MySQL-3_22_32.tar.gz in /usr/src/redhat/SOURCES
1. gzip -c -d mysql-3.22.32.tar.gz | tar xvf -
2. cd mysql-3.22.32
3. ./configure
4. Check the configure output for errors.
5. make
6. make install
7. /usr/local/mysql/bin/mysql_install_db
8. cp /usr/local/mysql/share/mysql/mysql.server
/etc/rc.d/init.d/mysql.server
9. change the attrib to allow exec access (0777 will do)
10. /sbin/chkconfig --level 2 mysql.server on
11. /sbin/chkconfig --level 3 mysql.server on
12. /sbin/chkconfig --level 4 mysql.server on
13. /sbin/chkconfig --level 5 mysql.server on

Data-Dumper Installation
1. cd /usr/local/src/project
2. gzip -c -d Data-Dumper-2_101_tar.gz | tar xvf -
3. cd Data-Dumper-2.101
4. perl Makefile.pl
5. make
6. make test
7. make install

DBI-1.13 installation
1. cd /usr/local/src/project
2. gzip -c -d DBI-1.13.tar.gz | tar xvf -
3. cd DBI-1.13
4. perl Makefile.pl
5. make
6. make test
7. make install

Msql-Mysql-modules installation
8. cd /usr/local/src/project
9. gzip -c -d Msql-Mysql-modules-1_2209_tar.gz | tar xvf -
10. cd Msql-Mysql-modules-1.2209
11. perl Makefile.pl
12. when asked use choose 1, then press enter to the rest of the options
13. make
14. make test
15. make install

Setup Koha project
1. cd /usr/local/src/project
2. gzip -c -d koha-1.00.tar.gz | tar xvf -
3. mv /usr/local/src/project/kohadl/opac-html /home/httpd/html/opac-html
4. mv /usr/local/src/project/kohadl/intranet-html
/home/httpd/html/intranet-html
5. cd /usr/local/mysql
6. bin/mysqladmin create koha
7. mysql -uroot mysql
8. insert into user (Host,User,Password) values
('localhost','koha',password('koha'));
9. insert into db values
('localhost','koha','koha','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
10. mysqladmin -uroot reload
11. mysql -ukoha -pkoha koha
12. mysql -uroot koha < koha.mysql
13. We need to edit C4/Database.pm
14. To make it use the user and the database name we have chosen
15. cp /usr/local/src/project/kohadl/scripts/c4 /home/httpd/cgi-bin/
16. mkdir /home/httpd/cgi-bin/koha
17. cp /usr/local/src/project/kohadl/scripts/*.pl /home/httpd/cgi-bin/koha
18. /etc/httpd/conf/httpd.conf
19. Change the "DocumentRoot"  in the Apache configuration to
"/home/httpd/html/opac-html"
20. Created a Virtual site in Apache like the following,
	
Listen koha.mysite.co.nz:6588
listen barney.mysite.co.nz:80

Port 80
Port 6588


AddHandler cgi-script .cgi
AddHandler cgi-script .pl
#
#	To use server-parsed HTML files
#
AddType text/html .shtml AddHandler server-parsed .shtml
AddType text/html .html AddHandler server-parsed .html
AddType text/html .inc
AddHandler server-parsed .inc


<VirtualHost koha.mysite.co.nz>
	ServerAdmin matthew.kelly at press.co.nz
	DocumentRoot /home/httpd/html/intranet-html
	ServerName koha.mysite.co.nz
	ErrorLog /home/httpd/html/intranet-html/logs/error_log
	TransferLog /home/httpd/html/intranet-html/logs/access_log
</VirtualHost>

21. copied the Includes folder to /usr/local/www/htl/htdocs

Hope that helps




More information about the Koha mailing list