Tags:
create new tag
view all tags

Question

I'm installing a TWiki onto an Apache server I don't control. The problem I'm having is not TWiki's fault: I've boiled it down to this: a (Perl) program that executes a command in backticks will work in the cgi-bin directory, but hangs in the htdocs/wiki/bin directory. The program is no longer than

print `/bin/ls`;

(after the content-type header) and it makes no difference what the command in the `` is. If I put anything else besides backticks in the program it executes properly. I have a .htaccess in the wiki/bin directory with a SetHandler cgi-script directive. The cgi-bin directory has no .htaccess file. htdocs is a sibling of cgi-bin. mod_perl is not running.

I got nowhere with extensive googling. There were some postings alleging a similar problem on Windows servers but this is Linux.

My TWiki question is this: As a last resort I will have to figure out how to install TWiki by moving its programs from htdocs/wiki/bin to cgi-bin. Are there any instructions on that (is it even possible)? I've installed a few TWikis before so I know my way around it.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache 1.3.37
Perl version: 5.8.7
Client OS: Windows
Web Browser: Firefox
Categories: Platform, Hosting, Installation, Htaccess

-- PeterScott - 06 Oct 2006

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.

Just rename bin to cgi-bin and point Apache at the renamed dir. If you can't rename the dir (because of an existing cgi-bin, for example) then just copy the contents. The bin dir isn't refered to from anywhere else.

-- CrawfordCurrie - 13 Oct 2006

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2006-10-13 - CrawfordCurrie
 
  • 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.