How to access koha in LAN

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to access koha in LAN

Ata ur Rehman
Dear All
I am using koha 2.27 on my server at Local Area Network.  OPAC is running fine at LAN but I want to access its main GUI from another computer (other than server).  How can i? http://intranet/cgi-bin/koha/mainpage.pl gives error (404)

Ata
Reply | Threaded
Open this post in threaded view
|

Re: How to access koha in LAN

Cyberarian
Open apache configuration file and replace the following text
NameVirtualHost *

<VirtualHost _default_:*>
    ServerAdmin webmaster@dummy-opac
    DocumentRoot /usr/koha227/opac/htdocs
    ScriptAlias  /cgi-bin/ /usr/koha227/opac/cgi-bin/
    ServerName opac
    ErrorLog logs/opac-error_log
    CustomLog logs/opac-access_log common
    SetEnv PERL5LIB "c:/usr/koha227/intranet/modules"
</VirtualHost>

<VirtualHost *>
    ServerAdmin webmaster@dummy-opac
    DocumentRoot /usr/koha227/opac/htdocs
    ScriptAlias  /cgi-bin/ /usr/koha227/opac/cgi-bin/
    ServerName opac
    ErrorLog logs/opac-error_log
    CustomLog logs/opac-access_log common
    SetEnv PERL5LIB "c:/usr/koha227/intranet/modules"
</VirtualHost>

<VirtualHost *>
    ServerAdmin webmaster@dummy-opac
    DocumentRoot /usr/koha227/intranet/htdocs
    ScriptAlias  /cgi-bin/ /usr/koha227/intranet/cgi-bin/
    ServerName intranet
    ErrorLog logs/intranet-error_log
    CustomLog logs/intranet-access_log common
    SetEnv PERL5LIB "c:/usr/koha227/intranet/modules"
</VirtualHost>

with this code:

NameVirtualHost *:80

<VirtualHost _default_:80> 
ServerAdmin webmaster@dummy-opac
DocumentRoot /usr/koha227/opac/htdocs
ScriptAlias /cgi-bin/ /usr/koha227/opac/cgi-bin/
ServerName opac
ErrorLog logs/opac-error_log
CustomLog logs/opac-access_log common
SetEnv PERL5LIB "c:/usr/koha227/intranet/modules"
</VirtualHost> 

<VirtualHost *:80> 
ServerAdmin webmaster@dummy-opac
DocumentRoot /usr/koha227/opac/htdocs
ScriptAlias /cgi-bin/ /usr/koha227/opac/cgi-bin/
ServerName opac
ErrorLog logs/opac-error_log
CustomLog logs/opac-access_log common
SetEnv PERL5LIB "c:/usr/koha227/intranet/modules"
</VirtualHost> 

<VirtualHost *:80> 
ServerAdmin webmaster@dummy-opac
DocumentRoot /usr/koha227/intranet/htdocs
ScriptAlias /cgi-bin/ /usr/koha227/intranet/cgi-bin/
ServerName intranet
ErrorLog logs/intranet-error_log
CustomLog logs/intranet-access_log common
SetEnv PERL5LIB "c:/usr/koha227/intranet/modules"
</VirtualHost> 

<VirtualHost *:8000> 
ServerAdmin webmaster@dummy-opac
DocumentRoot /usr/koha227/intranet/htdocs
ScriptAlias /cgi-bin/ /usr/koha227/intranet/cgi-bin/
ServerName intranet
ErrorLog logs/intranet-error_log
CustomLog logs/intranet-access_log common
SetEnv PERL5LIB "c:/usr/koha227/intranet/modules"
</VirtualHost> 

Then restart apache service.  Now you can use koha cataloging in lan by typing with the following address:

http://<ipadress or computer name>:8000

Reply | Threaded
Open this post in threaded view
|

Re: How to access koha in LAN

MRafiq
In reply to this post by Ata ur Rehman
How can we send the message on this forum. I'm unable to post unless reply to a message.

Rafiq
Reply | Threaded
Open this post in threaded view
|

Re: How to access koha in LAN

8thdwarf
In reply to this post by Cyberarian
for your tips to work, in "httpd.conf" you need to add a line also "Listen 8000" just below the Listen 80... (no quotation.
Reply | Threaded
Open this post in threaded view
|

Re: How to access koha in LAN

Cyberarian
sorry i forgot to mention it.....

Thx
Reply | Threaded
Open this post in threaded view
|

Re: How to access koha in LAN

darshangera
I have tried the above mention solution and it works fine. To summarize we are are using port 8000 instead of port 80. But wanted to know why it did not work originally by using

http:\\ip:80.

Any clarification..tks.