Setting up fastcgi and lighttpd in Fedora Core 5
Don’t install the fcgi gem. If you did, run:
gem uninstall fcgi
Install FastCGI
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure
make
sudo make install
Go to the homepage http://raa.ruby-lang.org/project/fcgi
Download the tarball read the README and follow the install instructions
wget http://www.moonwolf.com/ruby/archive/ruby-fcgi-0.8.7.tar.gz
ruby install.rb config -- --with-fcgi-include=/usr/local/include --with-fcgi-lib=/usr/local/lib
ruby install.rb setup
ruby install.rb install
Get lighttpd installed
yum install lighttpd-fastcgi
Set your security level
If your were unfortunate enough to install SeLinux ( Security Enhanced ), I feel your pain.
Go to the “Security level and firewall” settings, disable SeLinux
Configure Lighttpd
Go to rails root. Run “script/server lighttpd” it should fail the first time but it generates a
Set lighttpd to start automatically in the “Systems/Services” application