Please tell how to configure apache httpd.conf file in order to run koha
Please help me, I have installed koha 2.2.9 on Ubuntu 7.10 desktop edition without any problem , anybody can help me how to configure apache httpd.conf file in order to run koha. Thanks in advance. nezabudka No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 4/2/2008 4:14 PM
Hi Nez, The following works for me. Save the file to /etc/apache2/sites-available/koha , and setup a link ln -s /etc/apache2/sites-enabled/005-koha or whatever. You'll also need to have the NameVirtualHost lines in one of your config files (I put them in sites-enabled/default). Good luck! Reuben /etc/apache2/sites-enabled$ grep NameVirtual 001-default NameVirtualHost *:80 NameVirtualHost *:9080 /etc/apache2/sites-enabled$ cat 005-koha # Koha Apache Configuration Directives #NameVirtualHost * ## OPAC <VirtualHost *:80> ServerName your-server.lib.bla.edu ServerAdmin your-admin@bla.edu DocumentRoot /usr/share/koha/opac/htdocs # 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/search" ScriptAlias /search "/usr/share/koha/opac/cgi-bin/opac/search" 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" Options +FollowSymLinks # 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> ## Intranet #Listen 9080 <VirtualHost *:9080> ServerAdmin your-admin@bla.edu DocumentRoot /usr/share/koha/intranet/htdocs ServerName your-server.lib.bla.edu:9080 # ServerAlias intranet.mydomain.com ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/" ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl" ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/search.pl" ErrorLog /var/log/koha/koha-error_log # TransferLog /var/log/koha/koha-access_log SetEnv KOHA_CONF "/etc/koha/koha-conf.xml" SetEnv PERL5LIB "/usr/share/koha/lib" Options +FollowSymLinks RewriteEngine On # Uncomment to turn on rewrite logging # RewriteLog /var/log/koha/koha-intranet-rewrite.log # RewriteLogLevel 1 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*) RewriteRule (.+) $1?%1%2 [N,R,NE] RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT] RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT] RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] </VirtualHost>
"Anahit Hovhannisyan" <anahit@flib.sci.am> 4/2/2008 11:24 PM >>> Please help me, I have installed koha 2.2.9 on Ubuntu 7.10 desktop
edition without any problem , anybody can help me how to configure apache httpd.conf file in order to run koha. Thanks in advance. nezabudka No virus found in this outgoing message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 4/2/2008 4:14 PM _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
*R*esponder [image: Responder a todos] Responder a todos[image: Reenviar] Reenviar Imprimir Añadir Santiago a lista de contactos Eliminar este mensaje Denunciar suplantación de identidad Mostrar original ¿El texto del mensaje es ilegible? Santiago Hermira Anchuelo a Anahit mostrar detalles 15:41 (hace 0 minutos) Hi, My config; /etc/apache2/httpd.conf code: " Include /etc/koha-httpd.conf " /etc/apache2/ports.conf code: " Listen 80 Listen 8080 " Include in /etc/apache2/sites-enabled/ "koha-httpd.conf" greetings, Santiago.
participants (3)
-
Anahit Hovhannisyan -
Reuben Pasquini -
Santiago Hermira Anchuelo