Tags:
create new tag
view all tags

Question

Hey all,

Sorry for asking this question, but I've been sort of dumped into this thanks to an local admin who's less than helpful. Just a link to proper information would help - I've searched the docs but couldn't find exactly what I was looking for.

Simply, I've made a small group of CGI files, interfacing with a mysql db on the server. Right now they're located in a cgiwrap folder where I've been doing development. We need them to be within (and behind the security of) TWiki.

My question is, what's a simple way to put my custom CGI behind TWiki?

Any advice would be appreciated.

--Pou Hong

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version: 5.8.8
Client OS:  
Web Browser:  
Categories: Hosting, Htaccess, Documentation

-- PouHong - 04 Oct 2008

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.

the 'best' way, would be to re-write the scripts to be TWikiPlugins - registerTagHandler or restHandler style.

Failing that, you can just add twiki auto to those scripts - if you're using apache auth, via a .htaccess file - and if you're using template auth, by adding some more code to your cgi's

I suspect re-reiting as a twiki plugin will be the easiest tho

-- SvenDowideit - 04 Oct 2008

Dear Sir,

Your second option - the harder one you say, although I have already mostly finished the CGI scripts - what is twiki auto?

I have looked at the .htaccess file in the directory I'm using, modifying it based on what I see elsewhere in twiki's directory hierarchy, and I've tried moving things around and looking at twiki's login source, but to no avail so far.

Any further advice would be appreciated.

-- PouHong - 05 Oct 2008

sorry, spelling mistake - i meant twiki auth - but its harder, because you will need to spend some time working out how to integrate things together.

-- SvenDowideit - 06 Oct 2008

Closing this question after more than 30 days of inactivity. Feel free to re-open if needed.

-- PeterThoeny - 10 Dec 2008

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 - 2008-12-10 - PeterThoeny
 
  • 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.