Tags:
create new tag
view all tags

Question

I have just installed the r21 - 08 Jul 2005 - 18:12 beta version of TWiki. It all went quite smoothly really and after tidying up various path name errors it all seems to work pretty well except for GIFs not displaying.

The view script appears to be trying to execute the GIF files, originally I was getting errors as a result of them not being executables. Then I fixed the permissions so they couldn't execute and now I get errors like the following from apache:-

[Thu Nov 24 15:45:36 2005] [error] [client 193.128.168.194] (13)Permission denied: exec of '/var/www/cgi-bin/twiki/pub/TWiki/PatternSkin/tips_bg.gif' failed, referer: http://84-51-144-229.isbdlt032.adsl.metronet.co.uk/cgi-bin/twiki/bin/view/Main/WebHome [Thu Nov 24 15:45:36 2005] [error] [client 193.128.168.194] Premature end of script headers: tips_bg.gif, referer: http://84-51-144-229.isbdlt032.adsl.metronet.co.uk/cgi-bin/twiki/bin/view/Main/WebHome

This sounds like some sort of permissions/access configuration problem but I can't find what at the moment.

I can't run testenv at the moment because attempts to download it time out.

Environment

TWiki version: Codev. r21 - 08 Jul 2005 - 18:12
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Slackware Linux 10.1
Web server: Apache 2.0.52
Perl version: Perl 5.8.4
Client OS: Solaris
Web Browser: Firefox 1.0.7
Categories: Installation, Permissions

-- ChrisGreen - 24 Nov 2005

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.

This looks like a server configuration error. I guess you have a ScriptAlias directive mapping /cgi-bin/ to /var/www/cgi-bin/, so all files in that tree, including TWiki's pub directory, are considered executables. They aren't, of course, and they don't have execute permissions set, hence "Permission denied".

I'd suggest to move the whole TWiki tree out of /var/www/cgi-bin/ to another directory and add a ScriptAlias directive for TWiki's bin directory (and only for the bin directory).

-- HaraldJoerg - 24 Nov 2005

That was it! Brilliant. A quick move of the twiki directory up one level to /var/www/twiki and corresponding changes to the config files has got everything working correctly.

Thanks very much for the quick (and exactly correct) diagnosis.

-- ChrisGreen - 25 Nov 2005

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2005-11-25 - ChrisGreen
 
  • 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.