Skip to content

Instantly share code, notes, and snippets.

@otype
Created December 2, 2009 14:15
Show Gist options
  • Save otype/247219 to your computer and use it in GitHub Desktop.
Save otype/247219 to your computer and use it in GitHub Desktop.
export LE_VER=1.4.12-stable
wget "http://www.monkey.org/~provos/libevent-$LE_VER.tar.gz"
tar -zxvf "libevent-$LE_VER.tar.gz"
cd "libevent-$LE_VER"
./configure --prefix=/opt/php-fpm && make
make install
export LIBEVENT_SEARCH_PATH="/opt/php-fpm"
export PHP_VER=5.3.1
wget "http://launchpad.net/php-fpm/master/0.6/+download/php-fpm-0.6~$PHP_VER.tar.gz"
tar -zxvf "php-fpm-0.6~$PHP_VER.tar.gz"
"php-fpm-0.6-$PHP_VER/generate-fpm-patch"
wget "http://us.php.net/get/php-$PHP_VER.tar.gz/from/us.php.net/mirror"
tar xvfz "php-$PHP_VER.tar.gz"
cd "php-$PHP_VER"
patch -p1 < ../fpm.patch
./buildconf --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment