Hi, This is my 1st attempt at installing Koha, and I'm having some problems w/r/t the virtual servers it requires. I went thru the installation with the installer.pl, and it wrote the directives for the virtual servers in /etc/koha-httpd.conf. When I try to access the url, I get a seg fault. I've wrestled with this most of the day, and was going to post to an apache group, but thought I'd try here 1st,since anyone who's running Koha prolly has their directives written correctly. Here's my setup: Fedora Core 1-Yarrow 2.4.22-1.2179 smp kernel httpd-2.0.48 Koha-2.0.0 installed in /usr/local/ Here's the relevant lines in httpd.conf:
# Ports to listen to for Koha # uncomment these if they aren't already in main httpd.conf Listen 80 Listen 8080
# NameVirtualHost is used by one of the optional configurations detailed below
NameVirtualHost *:80 # KOHA's OPAC Configuration <VirtualHost wccs.homelinux.org:80> ServerAdmin tom@wccs.homelinux.org DocumentRoot /usr/local/koha/opac/htdocs/ ServerName wccs.homelinux.org ScriptAlias /cgi-bin/koha /usr/local/koha/opac/cgi-bin/ ErrorLog /usr/local/koha/log/opac-error_log TransferLog /usr/local/koha/log/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf"
</VirtualHost>
NameVirtualHost *:8080 # KOHA's INTRANET Configuration <VirtualHost wccs.homelinux.org:8080> ServerAdmin tom@wccs.homelinux.org DocumentRoot /usr/local/koha/intranet/htdocs/ ServerName wccs.homelinux.org ScriptAlias /cgi-bin/koha "/usr/local/koha/intranet/cgi-bin/" ErrorLog /usr/local/koha/log/koha-error_log TransferLog /usr/local/koha/log/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf"
</VirtualHost>
-- Tom
Hi Tom, So could you provide the exact error message as well as any errors that show up in the koha logs (the're in /usr/local/koha/log/ by default). You may also find my installation guide to be helpful: http://kados.org/LibraryScience/installing_koha.html Joshua Quoting Tom <tom@wccs.homelinux.org>:
Hi, This is my 1st attempt at installing Koha, and I'm having some problems w/r/t the virtual servers it requires. I went thru the installation with the installer.pl, and it wrote the directives for the virtual servers in /etc/koha-httpd.conf. When I try to access the url, I get a seg fault. I've wrestled with this most of the day, and was going to post to an apache group, but thought I'd try here 1st,since anyone who's running Koha prolly has their directives written correctly.
Here's my setup:
Fedora Core 1-Yarrow 2.4.22-1.2179 smp kernel httpd-2.0.48 Koha-2.0.0 installed in /usr/local/
Here's the relevant lines in httpd.conf:
# Ports to listen to for Koha # uncomment these if they aren't already in main httpd.conf Listen 80 Listen 8080
# NameVirtualHost is used by one of the optional configurations detailed below
NameVirtualHost *:80 # KOHA's OPAC Configuration <VirtualHost wccs.homelinux.org:80> ServerAdmin tom@wccs.homelinux.org DocumentRoot /usr/local/koha/opac/htdocs/ ServerName wccs.homelinux.org ScriptAlias /cgi-bin/koha /usr/local/koha/opac/cgi-bin/ ErrorLog /usr/local/koha/log/opac-error_log TransferLog /usr/local/koha/log/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf"
</VirtualHost>
NameVirtualHost *:8080 # KOHA's INTRANET Configuration <VirtualHost wccs.homelinux.org:8080> ServerAdmin tom@wccs.homelinux.org DocumentRoot /usr/local/koha/intranet/htdocs/ ServerName wccs.homelinux.org ScriptAlias /cgi-bin/koha "/usr/local/koha/intranet/cgi-bin/" ErrorLog /usr/local/koha/log/koha-error_log TransferLog /usr/local/koha/log/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf"
</VirtualHost>
-- Tom _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
On Tue, 27 Apr 2004 15:03:04 -0700, Joshua Ferraro <jmf@kados.org> wrote:
So could you provide the exact error message as well as any errors that show up in the koha logs (the're in /usr/local/koha/log/ by default).
That was part fo the problem, the logs weren't getting written to. Httpd was seg faulting before it could process any Koha stuff (I think). Anyway, the only message was in /var/log/httpd/error_log, and that log only indicated a segmentation fault on the httpd PID. Here's an "ls" of /usr/local/koha/log dir: total 8 drwxr-xr-x 2 apache apache 4096 Apr 27 15:57 . drwxr-xr-x 5 apache apache 4096 Apr 27 15:18 .. -rwxr-xr-x 1 apache apache 0 Apr 27 15:57 koha-access_log -rwxr-xr-x 1 apache apache 0 Apr 27 15:57 koha-error_log -rwxr-xr-x 1 apache apache 0 Apr 27 15:51 opac-access_log -rwxr-xr-x 1 apache apache 0 Apr 27 15:51 opac-error_log
You may also find my installation guide to be helpful: http://kados.org/LibraryScience/installing_koha.html
Excellent! The more info the better for me. Thank you. -- Tom
On 2004-04-27 22:17:07 +0100 Tom <tom@wccs.homelinux.org> wrote:
When I try to access the url, I get a seg fault.
Can you strace apache and examine what it does just before the segfault? I doubt this is a koha problem and (fortunately) apache problems this severe are rare. The problem is getting some log output. -- MJR/slef My Opinion Only and possibly not of any group I know. http://mjr.towers.org.uk/ http://www.ttllp.co.uk/ for creative copyleft computing
On Thu, 29 Apr 2004 13:19:21 +0100, MJ Ray <mjr@dsl.pipex.com> wrote:
I doubt this is a koha problem and (fortunately) apache problems this severe are rare. The problem is getting some log output.
I made some changes to httpd.conf (see below), and now it is working. I am fairly certain I had tried these changes before, but for whatever reasons it worked this time. I hate that. My squirrelmail is busted now, but I think I can flesh that one out. Thanks for the input. ============== httpd.conf # Ports to listen to for Koha # uncomment these if they aren't already in main httpd.conf Listen 8000 Listen 8080 # NameVirtualHost is used by one of the optional configurations detailed below #NameVirtualHost 11.22.33.44 # KOHA's OPAC Configuration <VirtualHost *:8000> <---- changed from name to * ServerAdmin tom@wccs.homelinux.org DocumentRoot /usr/local/koha/opac/htdocs ServerName wccs.homelinux.org ScriptAlias /cgi-bin/koha/ /usr/local/koha/opac/cgi-bin/ ErrorLog /usr/local/koha/log/opac-error_log TransferLog /usr/local/koha/log/opac-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" </VirtualHost> # KOHA's INTRANET Configuration <VirtualHost *:8080> <---- changed from name to * ServerAdmin tom@wccs.homelinux.org DocumentRoot /usr/local/koha/intranet/htdocs ServerName wccs.homelinux.org ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/" ErrorLog /usr/local/koha/log/koha-error_log TransferLog /usr/local/koha/log/koha-access_log SetEnv PERL5LIB "/usr/local/koha/intranet/modules" SetEnv KOHA_CONF "/etc/koha.conf" </VirtualHost> Tom --
participants (3)
-
Joshua Ferraro -
MJ Ray -
Tom