-
-
Save rizkyabdilah/3029211 to your computer and use it in GitHub Desktop.
Install fastcgiwrap and spawn-fcgi on CentOS 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! Saved my day.
error, /opt/source/fcgiwrap/fcgiwrap.c:405: undefined reference to `rpl_malloc'
export ac_cv_func_malloc_0_nonnull=yes