Setting up fastcgi and lighttpd in Fedora Core 5

Posted by Joel Jensen Thu, 21 Sep 2006 20:30:00 GMT

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 /config/lighttpd.conf file. Use the config/lighttpd.conf, modify it and put in /etc/lighttpd/lighttpd.conf. It didn’t like the cwd part so I hardcoded all paths.

Set lighttpd to start automatically in the “Systems/Services” application

Comments

Leave a comment

Comments