Finally got this work. Seems there was several problems.
my hints
run dispatch.fcgi from the command line to see if it works, also might
want to go into debug mode "ruby -r debug dispatch.rb" to see what
exceptions are being thrown. Usually you''ll have to set up
REQUEST_METHOD i did "export REQUEST_METHOD=GET" to get it to work.
and then magically everything worked. its seems like there was a hump
and that helped it get over it.
also the usual double checking of permissions and database.yml files
are important.
On 6/12/06, Joshua Shanks <jjshanks at gmail.com>
wrote:> I am also having troube getting instiki to run with apache.
>
> I get this in my apache error log
>
> [Mon Jun 12 14:32:02 2006] [notice] mod_fcgid: server
> /var/www/sites/help/public/dispatch.fcgi(25784) started
> [Mon Jun 12 14:32:02 2006] [notice] mod_fcgid: server
> /var/www/sites/help/public/dispatch.fcgi(25785) started
> [Mon Jun 12 14:32:02 2006] [notice] mod_fcgid: server
> /var/www/sites/help/public/dispatch.fcgi(25786) started
> [Mon Jun 12 14:32:08 2006] [notice] mod_fcgid: process
> /var/www/sites/help/public/dispatch.fcgi(25786) exit(server exited),
> terminated by calling exit(), return code: 255
> [Mon Jun 12 14:32:08 2006] [notice] mod_fcgid: process
> /var/www/sites/help/public/dispatch.fcgi(25785) exit(server exited),
> terminated by calling exit(), return code: 255
> [Mon Jun 12 14:32:08 2006] [notice] mod_fcgid: process
> /var/www/sites/help/public/dispatch.fcgi(25784) exit(server exited),
> terminated by calling exit(), return code: 255
>
> I am running
> Fedora Core 5
> rails 1.1.2
> instiki-0.11.0
> apache 2.2.0
> mod_fcgid.1.09
>
> I have several other rails apps running under apache but Instiki just
> doesn''t seem to want to work. I checked my shebang in
dispatch.fcgi
> and that is correct and the same as all my other rails apps that I
> have running under apache. Any ideas?
>
> here is what is in my httpd.conf
>
> IPCCommTimeout 40
> IPCConnectTimeout 10
> LimitInternalRecursion 20
> SocketPath /tmp/fcgidsock
>
> <VirtualHost *:80>
> ServerName help.foo.com
> DocumentRoot /var/www/sites/help/public
> DefaultInitEnv RAILS_ENV produciton
> <Directory /var/www/sites/help/public>
> Options ExecCGI FollowSymLinks
> AddHandler fcgid-script .fcgi
> RewriteEngine On
> RewriteRule ^$ index.html [QSA]
> RewriteRule ^([^.]+)$ $1.html [QSA]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
> </Directory>
> </VirtualHost>
>