Hello All members of this list.
First,, many thanks for this nice and simple WIKI :D ,, Instiki ROCKS :D
Now the answer to the problem.
I did run Instiki under Apache2 and mod_cfgid without problems.
(Right now I am using it under lighttpd without problems too and with the edit
area under autentication,, if someone needs this call me and I wil help.)
My environment:
FreeBSD 6.1-RELEASE
Apache 2.2.2
mod_fcgid-1.09
instiki-0.11.0
ruby-1.8.4_8
ruby18-gems-0.8.11
ruby18-fcgi-0.8.6
rubygem-rails-1.1.2
...and friends :)
After installing all this ports without any special parameter, only a simple
#make install , I did this:
Note for Apache2 under FreeBSD 6.1
For Apache2 to run on FreeBSD, you need to load a kernel module, as root run
#kldtstat and check for accf_http.ko if it is not present load it like this:
#kldload /boot/kernel/accf_http.ko
and then add it to laoder.conf to be loaded at boot time:
#echo "accf_http_load=\"YES\" >> /boot/loader.conf
Instiki was instaled in /usr/local/instiki, but as you will see I did
copy /usr/local/instiki/public/dispatch.cgi
to /usr/local/instiki/public/dispatch.fcgi and to edit.fcgi.
under: /usr/local/etc/apache2/httpd.conf , I left this with the simpliest
configuration possible, only changing the ServerName tag. All configuration
went to Includes and extra folders respectively.
so, /usr/local/etc/apache2/Include/fcgi.conf
LoadModule fcgid_module /usr/local/libexec/apache22/mod_fcgid.so
DefaultInitEnv RAILS_ENV production
IPCCommTimeout 40
IPCConnectTimeout 10
LimitInternalRecursion 20
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
AddHandler fcgid-script .php
</IfModule>
and, /usr/local/etc/apache2/extra/httpd-vhosts.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin francisco at nortenet.pt
DocumentRoot /usr/local/instiki/public/
ServerName www.sufixo.com
ErrorLog /var/log/sufixo.httpd2-error_log
CustomLog /var/log/sufixo.httpd2-access_log common
<Location />
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} .*/edit/.*
RewriteRule ^(.*)$ edit.fcgi [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails
application
failed to start properly"
</Location>
<Directory "/usr/local/instiki/public/">
SetHandler fcgid-script
Options Indexes +FollowSymLinks +ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
SetEnv USER "www"
</Directory>
</VirtualHost>
Finaly, under /usr/local/instiki/public_html/.htaccess
AuthUserFile /usr/home/include/htpasswd
AuthName ''Restricted Edition''
AuthType Basic
<FilesMatch "edit.fcgi">
Require valid-user
</FilesMatch
Hey, for me this worked just fine, but as I writed at the top of this e-mail,
right now I am running the site with Lighttpd and it''s fast as I want.
I will make a HOWTO about this last configuration, them I will mail the list
to publish it.
Best Regards
Francisco
PS: sorry my English
Em Quinta, 1 de Junho de 2006 19:40, o John Whitley
escreveu:> Hi Gaz,
>
> Unfortunately, I don''t have any experience offhand with this
> particular configuration. I''ve submitted this as an Instiki bug
> (http://dev.instiki.org/ticket/348).
>
> You could run Instiki behind Apache via a proxy config (e.g. Apache
> http://host:80/wiki/... proxies to http://host:3000/wiki/...). This
> can be quite snappy if you run Instiki with lighttpd instead of
> WEBrick. This arrangement is quite common on shared webhosting
> providers. You''ll need to swap out Instiki''s
script/server with the
> stock one from a current rails install, as Instiki''s script/server
is
> a customized, pre-lighty script. If lighty''s not an option, you
> could also try WEBrick in this setup to see if its performance is
> acceptable for your needs.
>
> -- John
>
> On Jun 1, 2006, at 8:23 AM, Gary Barlow wrote:
> > Does anyone host instiki v0.11.0 on Apache 2?
> > I understand this should be possilbe but can''t get it to
work! I have
> > Instiki 0.11.0 installed and have verified the install by running
> > it with
> > Webrick. I also have Apache 2 running other rails apps ok.
> >
> > I don''t see much in the way of error logging. This is it:
> >
> > [Thu Jun 01 17:15:35 2006] [error] [client {ip}] Premature end of
> > script
> > headers: dispatch.fcgi
> > [Thu Jun 01 17:15:38 2006] [notice] mod_fcgid: process
> > /var/rails/instiki/instiki/public/dispatch.fcgi(13286) exit
> > (communication
> > error), terminated by calling exit(), return code: 255
> >
> > Thanks Gaz
> >
> >
> > _______________________________________________
> > Instiki-users mailing list
> > Instiki-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/instiki-users
>
> _______________________________________________
> Instiki-users mailing list
> Instiki-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/instiki-users
--
Power is danger.
-- The Centurion, "Balance of Terror", stardate 1709.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :
http://rubyforge.org/pipermail/instiki-users/attachments/20060601/9a6c772c/attachment.bin