When I type http://localhost/cgi-bin/koha/opac-main.pl in browser, I got message below: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, aa@163.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Apache/2.0.47 (Unix) DAV/2 Server at localhost Port 80 Then I run command : perl opac-main.pl, I got message below: Can't locate C4/Auth.pm in @INC (@INC contains: /vservers/ireta/Library/cgi-bin/koha/C4 /usr/lib/perl5/5.8.1/i686-linux /usr/lib/perl5/5.8.1 /usr/lib/perl5/site_perl/5.8.1/i686-linux .........
BEGIN failed--compilation aborted at /vservers/ireta/Library/cgi-bin/opac/opac-main.pl line 7.
My environment is like this: Debian(sid) koha2.0pre4 perl(5.8 updated from 5.6) apache2.0.47(compiled) Modules(installed before updated in woody), Mysql So what can I do to resolve it? Thanks. -- zuxiaolong hugojoe@fastmail.fm -- http://www.fastmail.fm - Or how I learned to stop worrying and love email again
On Wed, Oct 22, 2003 at 12:47:13AM -0800, zuxiaolong said:
When I type http://localhost/cgi-bin/koha/opac-main.pl in browser, I got message below: Internal Server Error
[snip]
My environment is like this: Debian(sid) koha2.0pre4 perl(5.8 updated from 5.6) apache2.0.47(compiled) Modules(installed before updated in woody), Mysql
So what can I do to resolve it? Thanks. --
Hi there, Can you take a look at the apache error log, it will probably be in /var/log/apache. Take a look at that and see what the error in the log is, if you can find that and paste it into an email it will help us spot whats going on. Chris -- Chris Cormack Programmer 027 4500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
At Wed, 22 Oct 2003 00:47:13 -0800, zuxiaolong wrote:
When I type http://localhost/cgi-bin/koha/opac-main.pl in browser, I got message below:
You need to add /path/to/koha/koha/modules to PERL5LIB, the environment variable. In apache's httpd.conf, add SetEnv PERL5LIB "/home/httpd/localnet/koha/modules" to your virtual host config. If you want to run the perl files from the command line, just type (using bash) export PERL5LIB=/path/koha/modules:$PERL5LIB. (Should this not be in a FAQ? It's the second time I've answered more or less the same question.) Regards, Erik Hetzner
On 2003-10-22 18:25:16 +0100 Erik Hetzner <egh@OCF.Berkeley.EDU> wrote:
You need to add /path/to/koha/koha/modules to PERL5LIB
Actually, it looks like it was another problem (missing mod_cgi or similar), but you're right, this should be in a FAQ. I propose writing one and making it the ErrorDocument 500 for default koha installations, so it appears along with the "Internal Server Error" message. Any objections? -- MJR/slef My Opinion Only and possibly not of any group I know. Please http://remember.to/edit_messages on lists to be sure I read http://mjr.towers.org.uk/ gopher://g.towers.org.uk/ slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/
On Wed, Oct 22, 2003 at 06:54:58PM +0100, MJ Ray said:
On 2003-10-22 18:25:16 +0100 Erik Hetzner <egh@OCF.Berkeley.EDU> wrote:
You need to add /path/to/koha/koha/modules to PERL5LIB
Actually, it looks like it was another problem (missing mod_cgi or similar), but you're right, this should be in a FAQ. I propose writing one and making it the ErrorDocument 500 for default koha installations, so it appears along with the "Internal Server Error" message. Any objections?
No objections, just a couple of comments, that was the error when running from the commandline, but it may well occur anyway once the mod_cgi problem is fixed. And we have a FAQ. it just needs to be updated. http://koha.org/faq/ Chris -- Chris Cormack Programmer 027 4500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz
On 2003-10-22 19:43:47 +0100 Chris Cormack <chris@katipo.co.nz> wrote:
No objections, just a couple of comments, that was the error when running from the commandline, but it may well occur anyway once the mod_cgi problem is fixed.
Oh, sure. The type map one probably isn't a FAQ yet. This ErrorDocument will be a "common errors that cause code 500" FAQish document and link to the main FAQ. Most common are the PERL5LIB, KOHA_CONF variables and permissions, I think. Any others? -- MJR/slef My Opinion Only and possibly not of any group I know. Please http://remember.to/edit_messages on lists to be sure I read http://mjr.towers.org.uk/ gopher://g.towers.org.uk/ slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/
participants (4)
-
Chris Cormack -
Erik Hetzner -
MJ Ray -
zuxiaolong