Tags:
create new tag
view all tags

Question

How can I set my permissions properly if my ISP uses suEXEC?

I suspect my installation problems are due to suEXEC. I believe this is so because of my testenv:

http://www.perez-rael.com/twiki/bin/testenv.cgi

Initially I did not get anything but reading the support pages, I found I changed my bin/setlib.cfg to bin/setlib.cfg.cgi. Fixing that I got the top page to work:

http://www.perez-rael.com/twiki/bin/view.cgi

However, none of the links work. I read the suEXEC page for Dreamhost and I think I set the permissions correctly but it still does not work.

I did not change the RCS locks because files are owned by my and it appears they are checked in correctly from an "rlog". Since my ISP uses suEXEC and runs cgi as me, I think this is correct.

I don't know where else to look. Any help is greatly appreciated.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server: Apache/1.3.33
Perl version: v5.8.3
Client OS: Linux
Web Browser: Firefox
Categories: Installation

-- JacobRael - 11 Apr 2005

Answer

Jacob - Looking at the links on your site, I notice they say ~/bin/viewcgi/TopicName (note the lack of a dot after view). Are you on Dreamhost? If so, you don't need the .cgi suffix. Just put a SetHandler in the htaccess file in the bin directory. I just made some more notes about this today in NoviceDreamhostInstallProblems.

In my experience on Dreamhost, the suexec works pretty transparently and hasn't caused any problems. Hope this helps.

-- LynnwoodBrown - 11 Apr 2005

Also, I don't know here you got the idea about adding .cgi to bin/setlib.cfg. I don't think that's right.

-- LynnwoodBrown - 11 Apr 2005

I am not on Dreamhost but my ISP uses suexec. I needed to add .cgi to get the scripts to execute. I added the "cgi" suffix to the lib/TWiki.cfg file.

-- JacobRael - 12 Apr 2005

LynnwoodBrown, thanks for your help. I read your post, made a simple .htaccess file, moved my *.cgi files to *, rm'ed my "cgi" suffix from the TWiki.cfg file and it seems to work. I still have to add authentication but I think that will be easy.

-- JacobRael - 12 Apr 2005

Excellent!

-- LynnwoodBrown - 12 Apr 2005

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