Re: [Koha] I can access de staff client but not the OPAC
Hello Martin, If you are using webmin, then when you go to servers - Apache webserver, it should show you your virtual servers and what ports they are running on. Since you are running on Linode, if things are too screwed up you may just start all over again. But if you say the staff client is working, fixing this should be easy. Can you let me know what virtual hosts you have - server name, document root and port? Olugbenga Adara Mobile: 234 (0) 8033220288 Home: 234 (2) 8721720 Skype: gbengaadara Blog: http://gbengaadara.blogspot.com Twitter: http://twitter.com/gbengaadara Profile: http://www.linkedin.com/in/gbengaadara --- On Wed, 6/22/11, Alberto Martín Martín <surferpoint9819@gmail.com> wrote: From: Alberto Martín Martín <surferpoint9819@gmail.com> Subject: Re: [Koha] I can access de staff client but not the OPAC To: "Olugbenga Adara" <gbengaadara@yahoo.com> Date: Wednesday, June 22, 2011, 12:59 PM Hello Olugbenga, thanks for anwsering so quickly :) I am using ubuntu 10.04 LTS, but I don't know what port I installed the OPAC on. I just supposed it would be in 8081 like the times I installed koha in my local network... I added "Listen 8081" and "Listen 8080" (for the staff client) in ports.conf, but for some reason the staff client works, but the opac doesn't. Besides, I have been tinkering with the Apache webserver options in webmin trying to fix this... but I may have made it worse I know there must be an easy solution for this, but I am fairly new to these technologies and self-taught, so I lack some basic knowledge about them. I hope you can help me 2011/6/22 Olugbenga Adara <gbengaadara@yahoo.com> --- On Wed, 6/22/11, teleute <surferpoint9819@gmail.com> wrote:
I have just installed Koha 3.4.1 in a Linode virtual
private server and I
can access the staff client without problems, but I can't
access the OPAC.
I have tried entering the ip and the port 8081
(xxx.xx.xxx.xxx:8081), and
it says "404 not found". If I try the port 80, it says "it
works! This is
the default web page for this server. The web server
software is running but
no content has been added, yet." (the apache message)
What port did you install the OPAC on? What OS are you using? You may need to disable the default host configuration in Apache if you are using port 80 for your OPAC. you may also need to have the port specified in ports.conf if using another port other than 80. I have a site on Linode running Debian squeeze and Koha 3.2.9 (debian package) and I only needed to tell apache to listen on port 81. (my opac is on port 81) and everything was fine.
This is the first time I use a virtual server, so I feel a
bit lost. I would
like to make the OPAC the homepage of my site, but I don't
know how. I would
appreciate your help.
It actually feels no different to working on a physical server. very cool. Olugbenga Adara Mobile: 234 (0) 8033220288 Home: 234 (2) 8721720 Skype: gbengaadara Blog: http://gbengaadara.blogspot.com Twitter: http://twitter.com/gbengaadara Profile: http://www.linkedin.com/in/gbengaadara
Hello Olugbenga and Liz, I am almost sure it's just a problem of "stuff not pointing at other stuff as it should" because the staff client works just fine... In Webmin I have the default server and two virtual servers: [default server] address: any port: any server name: automatic document root: automatic [virtual server] address: 178.xx.xxx.xxx (my ip) port: 8080 server name: teleute:8080 (I set "teleute" as my hostname) document root: /usr/share/koha/intranet/ htdocs [virtual server] address: 178.xx.xxx.xxx (my ip) port: 8081 server name: teleute:8081 document root: /usr/share/koha/opac/cgi-bin/opac Another user who tried to help me told me to try this: a2dissite default and /etc/init.d/apache2 restart so now when I enter 178.xx.xxx.xxx:8081 I get a list of the files and folders in /usr/share/koha/opac/cgi-bin/opac (I thought I should let you know) thank you again for your help :) 2011/6/22 Olugbenga Adara [via Koha] < ml-node+4514342-1817176694-222429@n5.nabble.com>
Hello Martin,
If you are using webmin, then when you go to servers - Apache webserver, it should show you your virtual servers and what ports they are running on.
Since you are running on Linode, if things are too screwed up you may just start all over again. But if you say the staff client is working, fixing this should be easy.
Can you let me know what virtual hosts you have - server name, document root and port?
Olugbenga Adara
Mobile: 234 (0) 8033220288
Home: 234 (2) 8721720
Skype: gbengaadara
Blog: http://gbengaadara.blogspot.com
Twitter: http://twitter.com/gbengaadara
Profile: http://www.linkedin.com/in/gbengaadara
--- On Wed, 6/22/11, Alberto Martín Martín <[hidden email]<http://user/SendEmail.jtp?type=node&node=4514342&i=0>> wrote:
From: Alberto Martín Martín <[hidden email]<http://user/SendEmail.jtp?type=node&node=4514342&i=1>
Subject: Re: [Koha] I can access de staff client but not the OPAC To: "Olugbenga Adara" <[hidden email]<http://user/SendEmail.jtp?type=node&node=4514342&i=2>
Date: Wednesday, June 22, 2011, 12:59 PM
Hello Olugbenga, thanks for anwsering so quickly :)
I am using ubuntu 10.04 LTS, but I don't know what port I installed the OPAC on. I just supposed it would be in 8081 like the times I installed koha in my local network... I added "Listen 8081" and "Listen 8080" (for the staff client) in ports.conf, but for some reason the staff client works, but the opac doesn't.
Besides, I have been tinkering with the Apache webserver options in webmin trying to fix this... but I may have made it worse
I know there must be an easy solution for this, but I am fairly new to these technologies and self-taught, so I lack some basic knowledge about them.
I hope you can help me
2011/6/22 Olugbenga Adara <[hidden email]<http://user/SendEmail.jtp?type=node&node=4514342&i=3>
--- On Wed, 6/22/11, teleute <[hidden email]<http://user/SendEmail.jtp?type=node&node=4514342&i=4>> wrote:
I have just installed Koha 3.4.1 in a Linode virtual
private server and I
can access the staff client without problems, but I can't
access the OPAC.
I have tried entering the ip and the port 8081
(xxx.xx.xxx.xxx:8081), and
it says "404 not found". If I try the port 80, it says "it
works! This is
the default web page for this server. The web server
software is running but
no content has been added, yet." (the apache message)
What port did you install the OPAC on? What OS are you using? You may need to disable the default host configuration in Apache if you are using port 80 for your OPAC. you may also need to have the port specified in ports.conf if using another port other than 80.
I have a site on Linode running Debian squeeze and Koha 3.2.9 (debian package) and I only needed to tell apache to listen on port 81. (my opac is on port 81) and everything was fine.
This is the first time I use a virtual server, so I feel a
bit lost. I would
like to make the OPAC the homepage of my site, but I don't
know how. I would
appreciate your help.
It actually feels no different to working on a physical server. very cool.
Olugbenga Adara
Mobile: 234 (0) 8033220288
Home: 234 (2) 8721720
Skype: gbengaadara
Blog: http://gbengaadara.blogspot.com
Twitter: http://twitter.com/gbengaadara
Profile: http://www.linkedin.com/in/gbengaadara
_______________________________________________ Koha mailing list http://koha-community.org [hidden email] <http://user/SendEmail.jtp?type=node&node=4514342&i=5> http://lists.katipo.co.nz/mailman/listinfo/koha
------------------------------ If you reply to this email, your message will be added to the discussion below:
http://koha.1045719.n5.nabble.com/I-can-access-de-staff-client-but-not-the-O... To unsubscribe from I can access de staff client but not the OPAC, click here<http://koha.1045719.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4513503&code=c3VyZmVycG9pbnQ5ODE5QGdtYWlsLmNvbXw0NTEzNTAzfC0xMTk2NzYzODQ5>.
-- View this message in context: http://koha.1045719.n5.nabble.com/I-can-access-de-staff-client-but-not-the-O... Sent from the Koha - Discuss mailing list archive at Nabble.com.
At last I could fix it! :) For future reference, i'll explain what the problem was, maybe it'll help someone someday I had two problems: for some reason, in the file /etc/apache2/sites-enabled/koha the part referring to the OPAC was completely empty. I was lucky to have another koha installed in another computer, so I just copied it and adapted it, changing the ip, serveradmin, documentroot... etc. this is the part I copied: ## OPAC <VirtualHost *:8081> ServerAdmin webmaster@koha-builder DocumentRoot /usr/share/koha/opac/htdocs ServerName koha-builder # ServerAlias opac.mydomain.com ScriptAlias /cgi-bin/koha/ "/usr/share/koha/opac/cgi-bin/opac/" ScriptAlias /index.html "/usr/share/koha/opac/cgi-bin/opac/opac-main.pl" ScriptAlias /opac-search.pl "/usr/share/koha/opac/cgi-bin/opac/opac-search.pl" ScriptAlias /search "/usr/share/koha/opac/cgi-bin/opac/opac-search.pl" ErrorLog /var/log/koha/koha-opac-error_log # TransferLog /var/log/koha/koha-opac-access_log SetEnv KOHA_CONF "/etc/koha/koha-conf.xml" SetEnv PERL5LIB "/usr/share/koha/lib" <IfModule mod_gzip.c> mod_gzip_on yes mod_gzip_dechunk yes mod_gzip_keep_workfiles No mod_gzip_can_negotiate yes mod_gzip_update_static No mod_gzip_temp_dir /tmp mod_gzip_minimum_file_size 512 mod_gzip_maximum_file_size 1000000 mod_gzip_maximum_inmem_size 1000000 mod_gzip_handle_methods GET POST mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\[" mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader Content-Type:image/* mod_gzip_item_include file \.js$ mod_gzip_item_include mime ^application/x-javascript$ mod_gzip_item_include file \.php$ mod_gzip_item_include mime ^text/html$ mod_gzip_item_include file \.css$ mod_gzip_item_include mime ^text/css$ </IfModule> <IfModule mod_deflate.c> # Compress content with type html, text, and css, ... AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript DeflateCompressionLevel 9 # Properly handle old browsers that do not support compression BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate <IfModule mod_headers.c> #properly handle requests coming from behind proxies Header append Vary User-Agent </IfModule> </IfModule> # Repeat this virtualhost stanza changing the following environment vars to # create multiple OPAC interfaces with custom css and/or search limits: # SetEnv OPAC_CSS_OVERRIDE mystyle.css # SetEnv OPAC_SEARCH_LIMIT branch:CODE # SetEnv OPAC_LIMIT_OVERRIDE 1 Options +FollowSymLinks ErrorDocument 400 /cgi-bin/koha/errors/400.pl ErrorDocument 401 /cgi-bin/koha/errors/401.pl ErrorDocument 403 /cgi-bin/koha/errors/403.pl ErrorDocument 404 /cgi-bin/koha/errors/404.pl ErrorDocument 500 /cgi-bin/koha/errors/500.pl # Rewrite Rules RewriteEngine On # Uncomment to turn on rewrite logging # RewriteLog /var/log/koha/koha-opac-rewrite.log # RewriteLogLevel 1 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) RewriteRule (.+) $1?%1%2 [N,R,NE] RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] </VirtualHost> second problem: i had been tinkering with the apache virtual servers in webadmin and making a mess. Thanks to Olugbenga Adara I learned that the document root for the OPAC is usually /usr/share/koha/opac/htdocs after fixing that, I restarted apache with /etc/init.d/apache2 restart and there it was! thanks to everybody for your help :) -- View this message in context: http://koha.1045719.n5.nabble.com/I-can-access-de-staff-client-but-not-the-O... Sent from the Koha - Discuss mailing list archive at Nabble.com.
participants (2)
-
Olugbenga Adara -
teleute