1. Using Yast (I have SuSe 10.2) I've installed:
* apache2
* apache2-devel
* apache2-mod_fastcgi
* ruby
* ruby-devel
* ruby-doc-ri
* rubygems
* FastCGI
* FastCGI-devel
* zlib
2. in shell:
* # gem install fcgi
* # gem install mysql
* # install rails -y
* # mkdir /srv/www/rails
* # mkdir /srv/www/fcgi-log
* # chown wwwrun /srv/www/fcgi-log
3. Do a
# vi /etc/apache2/httpd.confand add
#
# Ruby stuff
#
AddHandler fastcgi-script fcgi
<Directory /srv/www/htdocs/>
AllowOverride All
Options FollowSymLinks
</Directory>
<Directory /srv/www/rails/*/public/>
Allow from all
</Directory>
I've added to
/etc/sysconfig/apache2in APACHE_MODULES words “rewrite” and “fastcgi”.
4. I think that I am finally done by doing following:
# cd /srv/www/rails
# rails test
# chown -R wwwrun:www test/tmp
# chown -R wwwrun:www test/public
# ln -s /srv/www/rails/test/public /srv/www/htdocs/test
# cd test/public
# vi .htaccess
and adding
RailsFCGIHandler.Process! '/srv/www/fcgi-log/test_fcgi_crash.log'
to the end of .htaccess
AND FINALLY
# rcapache2 start
AND I'VE GOT AN ERROR THAT KEEP ME WORKING FOR 2 HOURS ALREADY:
zhabanet-amd:/srv/www # rcapache2 start
Module "fastcgi" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
I gave up for today...
1 comment:
Hi,
And? Didn't find a solution? I'm getting the same error.
While that, I'm using WEBbrick to run my rail app.
Post a Comment