http://forum.dreamhosters.com/3rdparty/53647-TWiki-4.htm
and more, however they seem to give different instalation procedures. Dreamhost for example suggests setting temp folders in root, what is not mentioned anywhere else, there are differencess as to the level of edit of various files. I can get as far as setting everything up using .htaccess files and ignoring httpd_conf (as I understand should be done for DH, but when I go to my.domain.com/bin/configure, I either receive request for password from the browser (even though non of the guides says anything about creating .htpasswd as mandatory - where whould I specify the path to it - in the LocalLib.cfg only or in all .htaccess files?) or if I somehow bypass this, instead of an instalation page, I see raw code of configure file in the browser. One of the tutrorials suggests changing it to configure.pl, but would rather avoid manual workarounds like this. I understand that FastCGI should not be enabled for the domain? ehh.. lot's of questions from a complete Foswiki newbee, who is not yet to proficient with command line on SSH, and does't really meet Foswiki:System.AdminSkillsAssumptions -- HeyMcj - 17 Jun 2009 I'm sorry you're having so much trouble but the good news is that I think you may be closer than you think. I'm going to focus on what I think is the crux of your problem. It's really kind of a catch-22 in the installation process and has to do with the apache settings for the/bin
directory (which you corrected noted is set in the /bin/.htaccess
file). Here's the problem: SetHandler cgi-script
setting enabled. Without that, you get the raw code when you call up configure with the browser, as you experienced.
<FilesMatch "configure.*">
section enabled (because the password file isn't even created yet).
<FilesMatch "configure.*">
section by commenting it out. Then you can run configure and get your foswiki installation up and running. After you have registered yourself (which will result in the data/.htpasswd
file being created) and added yourself to the AdminGroup, then go back and re-enable the restricted access to configure by editing /bin/.htaccess
again and: AuthUserFile {DataDir}/.htpasswd
by replacing {DataDir}
with the path to your data directory. (In DH, this is typically /home/username/domain.com/data
.)
<FilesMatch "configure.*">
section and replace {Administrators}
with your WikiName.
/data/.htpasswd
file. If, after you're completed the steps I describe above, and you go to access configure and get the login prompt but your user and password are not recognized, try changing the permission of /data/.htpasswd
to 644
.
You're right about not enabling FastCGI because it requires special coding that Foswiki does not support.
I hope that gets you going!
-- LynnwoodBrown - 17 Jun 2009
Thanks a lot! This does explain a lot
I'll close the question and will give it a shot tonight again. I really appreciate your help.
-- HeyMcj - 17 Jun 2009
I'm a lot late on this, but only for the records: Foswiki does support FastCGI, since 12/25/2008. You need to install FastCGIEngineContrib and follow the instructions there about how to configure.
-- GilmarSantosJr - 25 Jan 2010
well, the docs aren't updated quite yet, but here's what worked for me:
#SetHandler cgi-script SetHandler fastcgi-script RewriteEngine on RewriteCond %{REQUEST_URI} !/configure RewriteCond %{REQUEST_URI} !/foswiki.fcgi RewriteRule ^(.*) foswiki.fcgi/$1 [L]-- WillNorris - 25 Jan 2010 I'd add:
<Files configure> SetHandler cgi-script </File>Since
configure
is supposed to run as cgi script (It doesn't run under FastCGI).
-- GilmarSantosJr - 25 Jan 2010
these apache configuration directives and other refinements are now generated by the installation script found at FoswikiOnLinuxSharedHostCommandShell.
-- WillNorris - 10 Feb 2010
Subject | Installation of Foswiki |
Extension | |
Version | |
Status | Answered |
Related Topics | SharedHosting |