-----Original Message-----<br />
From: "Yatheesh Y" <yatheeshb@gmail.com><br />
Sent 1/3/2011 10:54:54 PM<br />
To: "Randall Rowe" <r.rowe@lincolnlibraries.org><br />
Cc: Koha@lists.katipo.co.nz<br />
Subject: Re: [Koha] unable to run apache after upgrade from 3.0 to 3.2<br />
<br />
this is file apache error <br />
<br />
<br />
<br />
Based upon the NCSA server configuration files originally by Rob McCool.<br />
#<br />
# This is the main Apache server configuration file. It contains the<br />
# configuration directives that give the server its instructions.<br />
# See <a href="http://httpd.apache.org/docs/2.2/">http://httpd.apache.org/docs/2.2/</a> for detailed information about<br />
# the directives.<br />
#<br />
# Do NOT simply read the instructions in here without understanding<br />
# what they do. They're here only as hints or reminders. If you are unsure<br />
# consult the online docs. You have been warned. <br />
#<br />
# The configuration directives are grouped into three basic sections:<br />
# 1. Directives that control the operation of the Apache server process as a<br />
# whole (the 'global environment').<br />
# 2. Directives that define the parameters of the 'main' or 'default' server,<br />
# which responds to requests that aren't handled by a virtual host.<br />
# These directives also provide default values for the settings<br />
# of all virtual hosts.<br />
# 3. Settings for virtual hosts, which allow Web requests to be sent to<br />
# different IP addresses or hostnames and have them handled by the<br />
# same Apache server process.<br />
<br />
<br />
<br />
<div class="gmail_quote">
On Mon, Jan 3, 2011 at 6:51 PM, Randall Rowe <span dir="ltr"><<a href="mailto:r.rowe@lincolnlibraries.org">r.rowe@lincolnlibraries.org</a>></span> wrote:<br />
<blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid #cccccc; padding-left: 1ex;" class="gmail_quote">
It means that the file /etc/apache2/sites-enabled/koha has an error.<br />
There is a closing </VirtualHost> without an opening <VirtualHost>.<br />
Check the file and see if you can figure out the problem or post it and we'll see what went wrong.<br />
<br />
<p>Randy Rowe<br />
Lincoln City Libraries I.T.</p>
<div class="im">
<br />
-----Original Message-----<br />
From: "Yatheesh Y" <<a target="_blank" href="mailto:yatheeshb@gmail.com">yatheeshb@gmail.com</a>><br />
Sent 1/3/2011 5:19:10 AM<br />
To: <a target="_blank" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a><br />
Subject: [Koha] unable to run apache after upgrade from 3.0 to 3.2<br />
<br />
after upgrading unable to run apache it gives following error<br />
<br />
what is this?<br />
<br />
<br />
Restarting web server apache2 apache2: Syntax error on line 265 of /etc/apache2/apache2.conf: Syntax error on line 95 of /etc/apache2/sites-enabled/koha: </VirtualHost> without matching <VirtualHost> section<br />
<br clear="all" />
<br />
</div>
<div>
<div></div>
<div class="h5">
-- <br />
<div style="text-align: left;">----------------------------<br />
</div>
<span style="font-family: times new roman,serif; font-size: 18px;">Y.Yatheesh babu<br />
Librarian<br />
Shri Shakti College of Hotel Management<br />
Venus Plaza Begumpet<br />
Hyderabad-500 016<br />
09966178388</span><br />
<br />
<pre>_______________________________________________
Koha mailing list <a target="_blank" href="http://koha-community.org">http://koha-community.org</a>
<a target="_blank" href="mailto:Koha@lists.katipo.co.nz">Koha@lists.katipo.co.nz</a>
<a target="_blank" href="http://lists.katipo.co.nz/mailman/listinfo/koha">http://lists.katipo.co.nz/mailman/listinfo/koha</a>
</pre>
</div>
</div>
</blockquote></div>
<br />
<br clear="all" />
<br />
-- <br />
<div style="text-align: left;">----------------------------<br />
</div>
<span style="font-family: times new roman,serif; font-size: 18px;">Y.Yatheesh babu<br />
Librarian<br />
Shri Shakti College of Hotel Management<br />
Venus Plaza Begumpet<br />
Hyderabad-500 016<br />
09966178388</span><br />
<br />
<br />
<br />
That file is most likely /etc/apache2/apache2.conf. The error is being caused by a problem in /etc/apache2/sites-enabled/koha.<br />
Compare the following with what you have in /etc/apache2/sites-enabled/koha<br />
<br />
# Koha Apache Configuration Directives<br />
<br />
#NameVirtualHost *<br />
<br />
## OPAC<br />
<VirtualHost 172.25.1.252:80><br />
ServerAdmin webmaster@lcltest<br />
DocumentRoot /usr/share/koha/opac/htdocs<br />
ServerName lcltest<br />
# ServerAlias opac.mydomain.com<br />
ScriptAlias /cgi-bin/koha/ "/usr/share/koha/opac/cgi-bin/opac/"<br />
ScriptAlias /index.html "/usr/share/koha/opac/cgi-bin/opac/opac-main.pl"<br />
ScriptAlias /opac-search.pl "/usr/share/koha/opac/cgi-bin/opac/opac-search.pl<br />
"<br />
ScriptAlias /search "/usr/share/koha/opac/cgi-bin/opac/opac-search.pl"<br />
ErrorLog /var/log/koha/koha-opac-error_log<br />
# TransferLog /var/log/koha/koha-opac-access_log<br />
SetEnv KOHA_CONF "/etc/koha/koha-conf.xml"<br />
SetEnv PERL5LIB "/usr/share/koha/lib"<br />
<br />
<IfModule mod_gzip.c><br />
mod_gzip_on yes<br />
mod_gzip_dechunk yes<br />
mod_gzip_keep_workfiles No<br />
mod_gzip_can_negotiate yes<br />
mod_gzip_update_static No<br />
mod_gzip_temp_dir /tmp<br />
mod_gzip_minimum_file_size 512<br />
mod_gzip_maximum_file_size 1000000<br />
mod_gzip_maximum_inmem_size 1000000<br />
mod_gzip_handle_methods GET POST<br />
mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["<br />
mod_gzip_item_exclude mime ^image/.*<br />
mod_gzip_item_exclude rspheader Content-Type:image/*<br />
mod_gzip_item_include file \.js$<br />
mod_gzip_item_include mime ^application/x-javascript$<br />
mod_gzip_item_include file \.php$<br />
mod_gzip_item_include mime ^text/html$<br />
mod_gzip_item_include file \.css$<br />
mod_gzip_item_include mime ^text/css$<br />
</IfModule><br />
<br />
<IfModule mod_deflate.c><br />
<br />
# Compress content with type html, text, and css, ...<br />
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css<br />
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml applicat<br />
ion/rss+xml application/javascript application/x-javascript<br />
<br />
DeflateCompressionLevel 9<br />
<br />
# Properly handle old browsers that do not support compression<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
<br />
DeflateFilterNote Input instream<br />
DeflateFilterNote Output outstream<br />
DeflateFilterNote Ratio ratio<br />
<br />
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate<br />
<IfModule mod_headers.c><br />
#properly handle requests coming from behind proxies<br />
Header append Vary User-Agent<br />
</IfModule><br />
</IfModule><br />
<br />
<br />
# Repeat this virtualhost stanza changing the following environment vars to<br />
# create multiple OPAC interfaces with custom css and/or search limits:<br />
# SetEnv OPAC_CSS_OVERRIDE mystyle.css<br />
# SetEnv OPAC_SEARCH_LIMIT branch:CODE<br />
# SetEnv OPAC_LIMIT_OVERRIDE 1<br />
<br />
Options +FollowSymLinks<br />
<br />
ErrorDocument 400 /cgi-bin/koha/errors/400.pl<br />
ErrorDocument 401 /cgi-bin/koha/errors/401.pl<br />
ErrorDocument 403 /cgi-bin/koha/errors/403.pl<br />
ErrorDocument 404 /cgi-bin/koha/errors/404.pl<br />
ErrorDocument 500 /cgi-bin/koha/errors/500.pl<br />
<br />
# Rewrite Rules<br />
RewriteEngine On<br />
<br />
# Uncomment to turn on rewrite logging<br />
# RewriteLog /var/log/koha/koha-opac-rewrite.log<br />
# RewriteLogLevel 1<br />
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)<br />
RewriteRule (.+) $1?%1%2 [N,R,NE]<br />
<br />
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]<br />
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]<br />
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]<br />
</VirtualHost><br />
<br />
## Intranet<br />
<VirtualHost 172.25.1.252:8080><br />
ServerAdmin webmaster@lcltest<br />
DocumentRoot /usr/share/koha/intranet/htdocs<br />
ServerName lcltest:8080<br />
# ServerAlias intranet.mydomain.com<br />
ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/"<br />
ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl"<br />
ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/search.pl"<br />
ErrorLog /var/log/koha/koha-error_log<br />
# TransferLog /var/log/koha/koha-access_log<br />
SetEnv KOHA_CONF "/etc/koha/koha-conf.xml"<br />
SetEnv PERL5LIB "/usr/share/koha/lib"<br />
Options +FollowSymLinks<br />
<br />
ErrorDocument 400 /cgi-bin/koha/errors/400.pl<br />
ErrorDocument 401 /cgi-bin/koha/errors/401.pl<br />
ErrorDocument 403 /cgi-bin/koha/errors/403.pl<br />
ErrorDocument 404 /cgi-bin/koha/errors/404.pl<br />
ErrorDocument 500 /cgi-bin/koha/errors/500.pl<br />
<br />
<IfModule mod_gzip.c><br />
mod_gzip_on yes<br />
mod_gzip_dechunk yes<br />
mod_gzip_keep_workfiles No<br />
mod_gzip_can_negotiate yes<br />
mod_gzip_update_static No<br />
mod_gzip_temp_dir /tmp<br />
mod_gzip_minimum_file_size 512<br />
mod_gzip_maximum_file_size 1000000<br />
mod_gzip_maximum_inmem_size 1000000<br />
mod_gzip_handle_methods GET POST<br />
mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["<br />
mod_gzip_item_exclude mime ^image/.*<br />
mod_gzip_item_exclude rspheader Content-Type:image/*<br />
mod_gzip_item_include file \.js$<br />
mod_gzip_item_include mime ^application/x-javascript$<br />
mod_gzip_item_include file \.php$<br />
mod_gzip_item_include mime ^text/html$<br />
mod_gzip_item_include file \.css$<br />
mod_gzip_item_include mime ^text/css$<br />
</IfModule><br />
<br />
<IfModule mod_deflate.c><br />
<br />
# Compress content with type html, text, and css, ...<br />
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css<br />
AddOutputFilterByType DEFLATE application/xml application/xhtml+xml applica<br />
tion/rss+xml application/javascript application/x-javascript<br />
<br />
DeflateCompressionLevel 9<br />
<br />
# Properly handle old browsers that do not support compression<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
<br />
DeflateFilterNote Input instream<br />
DeflateFilterNote Output outstream<br />
DeflateFilterNote Ratio ratio<br />
<br />
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate<br />
<IfModule mod_headers.c><br />
#properly handle requests coming from behind proxies<br />
Header append Vary User-Agent<br />
</IfModule><br />
</IfModule><br />
<br />
RewriteEngine On<br />
# Uncomment to turn on rewrite logging<br />
# RewriteLog /var/log/koha/koha-intranet-rewrite.log<br />
# RewriteLogLevel 1<br />
<br />
RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)<br />
RewriteRule (.+) $1?%1%2 [N,R,NE]<br />
RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/detail\.pl?bib=$1 [PT]<br />
RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]<br />
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]<br />
</VirtualHost><br />
<br />
<br />
Randy<br />