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
--
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