Skip to content

Instantly share code, notes, and snippets.

@rizkyabdilah
Created July 1, 2012 18:42
Show Gist options
  • Save rizkyabdilah/3029211 to your computer and use it in GitHub Desktop.
Save rizkyabdilah/3029211 to your computer and use it in GitHub Desktop.
Install fastcgiwrap and spawn-fcgi on CentOS 5
## maybe you cannot find fcgi-devel package
wget http://www.fastcgi.com/dist/fcgi.tar.gz
tar -xzf fcgi.tar.gz
cd fcgi
./configure
make
make install
## install fcgiwrap
## need autoconf greater than equal 2.61
wget http://files.directadmin.com/services/custombuild/autoconf-2.61.tar.gz
tar -xzf autoconf-2.61.tar.gz
cd autoconf-2.6.1
./configuer --prefix=/usr
make
make install
## install fcgiwrap
git clone git://github.com/gnosek/fcgiwrap.git
cd fcgiwrap
autoreconf -i
./configure
make
## error, /opt/source/fcgiwrap/fcgiwrap.c:405: undefined reference to `rpl_malloc'
export ac_cv_func_malloc_0_nonnull=yes
./configure
make
make install
## install spawn-fcgi
wget http://www.lighttpd.net/download/lighttpd-1.4.18.tar.bz2
tar -xjf lighttpd-1.4.18.tar.bz2
cd lighttpd-1.4.18/
./configure
make
sudo cp src/spawn-fcgi /usr/bin/spawn-fcgi
## launch spawn fcgi,
/usr/bin/spawn-fcgi -f /usr/local/sbin/fcgiwrap -a 127.0.0.1 -p 9002 -P /var/run/fcgiwrap.socket -u [user-id] -g [group-id]
@blockmar
Copy link

Thanks! Saved my day.

error, /opt/source/fcgiwrap/fcgiwrap.c:405: undefined reference to `rpl_malloc'
export ac_cv_func_malloc_0_nonnull=yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment