Installing a recent mod_fastcgi in Ubuntu 10.04.1
Yesterday I found I had a conflict between mod_deflate and mod_fastcgi. The bug is known to Ubuntu, but the proposed fix has never been committed. So I tried to install it manually. Here are the steps:
- Go to http://www.fastcgi.com/dist/ and get the latest snapshot (for me it was the 05-Oct-2009 snapshot)
wget http://www.fastcgi.com/dist/mod_fastcgi-SNAP-0910052141.tar.gz
- Extract and change directory:
tar -xf mod_fastcgi-SNAP-0910052141.tar.gz cd mod_fastcgi-SNAP-0910052141/
- For Apache2, the installation instructions are in INSTALL.AP2. You just need to
cp Makefile.AP2 Makefile
and thenmake
andmake install
. But make doesn't run and complains about a missing file insteadMakefile:12: /usr/local/apache2/build/special.mk: No such file or directory make: *** No rule to make target `/usr/local/apache2/build/special.mk'. Stop.
Hopefully the fix is trivial: in fact apache2 is in/usr/share/
instead of/usr/local/
, so the following command will fix it:sed 's/\/usr\/local\/apache2/\/usr\/share\/apache2/' Makefile
- Now we can
make
andsudo make install
. Don't forget tosudo apt-get remove libapache2-mod-fastcgi
before. In my case I used checkinstall instead ofmake install
to avoid messing the system. - Re-enable mod_fastcgi with
a2enmod fastcgi
.
That's it! Enjoy your browser not throbbing more than needed!
Xavier Robin
Publié le dimanche 9 janvier 2011 à 15:07 CET
Lien permanent : /blog/2011/01/09/installing-a-recent-mod_fastcgi-in-ubuntu-10.04.1
Tags :
Mon site web
Commentaires : 0
Commentaires
Aucun commentaire