Tags:
create new tag
view all tags

Question

I have just installed twiki, gone through the configure script and everything comes up green. No other script works. Calling a url like:

http://myhost/twiki/bin/view.pl generates the following:

<html><head>
<title>500 Internal Server Error</title>
</head><body>
(Yes, it shows up as html source instead of being parsed by the browser; that holds for both ie7 and firefox.)

Similar result occur for any other script (such as login.pl) and from localhost or form another machine.

No message shows up in the apache error log. The access log shows a 500 error:

192.168.1.199 - - [03/Jul/2007:09:25:05 -0700] "GET /twiki/install.html HTTP/1.1" 304 -
192.168.1.199 - - [03/Jul/2007:09:58:34 -0700] "GET /twiki/bin/view HTTP/1.1" 404 212
192.168.1.199 - - [03/Jul/2007:09:58:48 -0700] "GET /twiki/bin/view.pl HTTP/1.1" 500 541
127.0.0.1 - - [03/Jul/2007:10:07:24 -0700] "GET /twiki/bin/view.pl HTTP/1.1" 500 541
127.0.0.1 - - [03/Jul/2007:10:10:44 -0700] "GET /twiki/bin/login.pl HTTP/1.1" 500 541
No doubt it's an easy configuration change, maybe even something I missed or overlooked. Nonetheless, I'm stuck. What should I do next?

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Win XP
Web server: apache 2.2
Perl version: active state 5.8.8
Client OS: XP sp 2
Web Browser: Firefox and IE7
Categories: Installation

-- TWikiGuest - 03 Jul 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

Every 404 or 500 status code will leave information in the error log. So please double-check your web server configuration: What's the file name for the error log? Does the process running the server have write access to the error log?

Next, you could open a command box, change to the bin directory in your installation, and run:

perl -T view
This should print a complete (somewhat lengthy) HTML page. If it does, check whether the web server's user id has read and execute permissions to your scripts. If it doesn't, well - maybe the error message gives a hint.

-- HaraldJoerg - 03 Jul 2007

Added aliases for /bin and for / in the hppd.conf (as per ShorterUrlCookbook) and now at least get an error message. Does this provide any insight?

[error] [client 127.0.0.1] Premature end of script headers: view.pl [error] [client 127.0.0.1] "-T" is on the #! line, it must also be used on the command line at C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\twiki\\bin\\view.pl line 1.\r

-- TWikiGuest - 03 Jul 2007

This looks like you are running under mod_perl? If so, add

PerlSwitches -T
to your httpd.conf. Or, as a workaround, remove the -T option from the first line of all of your scripts. This disables some security checks, but from your IP address from the logfile I assume you are running in a private network.

Otherwise I'm lost (but maybe windows folks may help).

-- HaraldJoerg - 03 Jul 2007

Thanks. Removing the T worked. Now it does other ugly stuff that's not part of this question. smile

-- TWikiGuest - 03 Jul 2007

Change status to:
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2007-07-03 - TWikiGuest
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.