RLB3.COM

Aut disce aut discede

Installing Ruby on Rails with Lighttpd and MySQL on Fedora Core 4

Posted by rlb3 Sat, 04 Mar 2006 15:55:00 GMT

Here is an article about using lighttpd with rails on FC4. So if you’ve been curious about lighttpd here’s your chance to try it out.

Posted in , , | no comments |

Building fastCGI on FC4

Posted by rlb3 Thu, 22 Sep 2005 00:08:00 GMT

This howto we will get fastCGI running with a stock FC4 apache2.

If you don’t have it on you system run as root:

yum install httpd httpd-devel
Next you’ll need download these two files:
http://www.fastcgi.com/dist/fcgi-2.4.1-SNAP-0311112127.tar.gz
http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
tar -zxvf fcgi-2.4.1-SNAP-0311112127.tar.gz
cd fcgi-2.4.2
./configure
make
make install
Once you’ve done that. Add this to /etc/ld.so.conf
/usr/local/lib
Then run:
ldconfig
Now you are read to install mod_fastcgi.
tar -zxvf mod_fastcgi-2.4.2.tar.gz
cd mod_fastcgi-2.4.2
apxs -n mod_fastcgi -i -a -c \
        mod_fastcgi.c fcgi_buf.c \
        fcgi_config.c fcgi_pm.c fcgi_protocol.c fcgi_util.c

This installs the .so file but puts the wrong module name in /etc/httpd/conf/httpd.conf

LoadModule mod_fastcgi_module modules/mod_fastcgi.so
to:
LoadModule fastcgi_module modules/mod_fastcgi.so

Now you are ready to install any fcgi ready program.

no comments |