Koozali.org: home of the SME Server

Koha Install Port 8000 and 8080

Dacky

Koha Install Port 8000 and 8080
« on: October 12, 2006, 07:50:59 AM »
I am attempting to install Koha library system on SME 7.  I have it all installed as far as I know.  I modified the httpd.conf to include

Include /etc/koha-httpd.conf

The koha-httpd.conf file has two lines for ports to listen:
Listen 8000
Listen 8080

I cannot get Koha to come up in the browser:  http://serverip:8000.  

Koha is installed in the Primary ibay.

I am pretty sure Koha is installed corrected since I have done it before and I got no error messages.  I suspect there is another file I need to modify, but I am not familiar enough with SME to know which file.

Is there another file to modify?  Is the firewall blocking access?  Anything in the httpd.conf file?  Sites-enabled?

Has anyone installed Koha on SME 7?  Our library could really use this.  I have Koha running on Ubuntu but I want to upgrade to SME 7 for ease of administration.

Dacky

Koha Install Port 8000 and 8080
« Reply #1 on: October 12, 2006, 07:58:51 AM »
One more thing I need to add:

If I change Koha port to 80 in the koha-httpd.conf file (thus accessing Koha at http://serverip ), I access the OPAC (formerly port 8000), but I don't want this because I will be adding other pages and need to have http://server ip for main page.

So that tells me it is a port issue.

Offline robin_wangaz

  • **
  • 26
  • +0/-0
Koha
« Reply #2 on: December 13, 2006, 08:18:06 AM »
Any chance of a "how to " ??? - install on SME 7 that is.

Dacky

Howto Install Koha on SME 7
« Reply #3 on: December 13, 2006, 08:55:31 AM »
This is only a working draft and needs someone to test it and add any additional comments.  These are the steps I used.  I did not write down every single step, so there might be a few areas missing (dependencies is the challenge).  These directions came with a lot of sweat and almost blood.  Please let me know what what can be added.
Howto Install Koha on SME

1.  Install all dependencies following directions at http://www.kohadocs.org/Installing_Koha_on_Fedora.html

Under the Fedora section 3.

Do a Google search for the place to download any dependencies. Make sure the package is for Centos.  If you receive an error message that a dependency is needed, look for the exact package with the above method.  Download them to the SME server (download to another machine and ssh is one method) and install with rpm –ivh packagename.rpm

To install gcc (needed for the Perl Modules):

db yum_repositories show centosplus
db yum_repositories show base

db yum_repositories setprop base status enabled
db yum_repositories setprop base Visible yes
db yum_repositories setprop centosplus Visible yes
db yum_repositories setprop centosplus status enabled

expand-template /etc/yum.conf

yum install gcc gcc-c++

2.  Download Koha and extract into a temp or working folder:  http://www.koha.org/download/

Follow the install directions for Koha.

For the specific questions asked during the installation, the following is recommended:

Opac install directory:
/home/e-smith/files/ibays/Primary/html/koha/opac

Intranet install directory:
/home/e-smith/files/ibays/Primary/html/koha/intranet

Opac port 8000
Intranet port 8080

You will need the root password.  You can get this in the root home directory at a file called .my.cnf.
cd /root
cat .my.cnf

3.  Once Koha is installed, you need to do the following:

a.  Modify the koha-httpd.conf file:

pico /etc/koha-httpd.conf

Uncomment the lines
Listen 8000
Listen 8080

Save and copy to:

cp /etc/koha-httpd.conf /etc/e-smith/templates/httpd/conf/httpd.conf/94Kohahttpdconf

expand-template /etc/httpd/conf/httpd.conf

service httpd-e-smith restart


b.  Open up two new ports:

You'll need to allow access through the firewall to ports 8000 and 8080. You can do that by creating a custom template fragment

pico /etc/e-smith/templates-custom/etc/rc.d/init.d/masq/46Allow2ndhttp

Add the following lines and save:

{
$OUT = allow_tcp_in(8000, 1);
}

{
$OUT = allow_tcp_in(8080, 1);
}

Then do:

/sbin/e-smith/expand-template /etc/rc.d/init.d/masq

/etc/rc.d/init.d/masq adjust

Test.

Offline robin_wangaz

  • **
  • 26
  • +0/-0
Koha Install Port 8000 and 8080
« Reply #4 on: December 13, 2006, 07:33:37 PM »
thanks for the speedy reply - great!!! Will FYI when done.

cheers