Skip to content

Commit

Permalink
Documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamcat4 committed Sep 27, 2009
1 parent 4068c0f commit 5a53a6d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
6 changes: 4 additions & 2 deletions generate-fpm-patch
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#

START_DIR=`pwd`
CONFIGURE_AC="php-fpm/configure.ac"
if [ "$1" ] ; then FPM_DIR="$1"; else FPM_DIR="php-fpm"

CONFIGURE_AC="$FPM_DIR/configure.ac"
if [ ! -f "$CONFIGURE_AC" ]; then
echo This command must be executed one directory ABOVE the
echo php-fpm source tree, with `php-fpm/generate-fpm-patch`
Expand All @@ -23,7 +25,7 @@ PHP_SRC=43fa2d06781b784bb2025b57a2230267 # echo "php-src" | md5
mkdir -p $PHP_SRC/php-src-vanilla/sapi
mkdir -p $PHP_SRC/php-src/sapi
cd $PHP_SRC/php-src
cp -Rf ../../php-fpm sapi/fpm
cp -Rf ../../$FPM_DIR sapi/fpm
cd sapi/fpm
# Remove non-project files
Expand Down
27 changes: 14 additions & 13 deletions readme.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ Choose one of 2 ways to compile fpm. Either `integrated` or `seperate`. Unless y
Download fpm and generate the patch file

export PHP_VER=5.3.0
wget http://launchpad.net/php-fpm/trunk/0.6/+download/php-fpm-0.6-$PHP_VER.tar.gz
php-fpm-0.6-$PHP_VER/generate-fpm-patch
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" "php-fpm-0.6-$PHP_VER"

The PHP source code. Download it, unpack it.

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
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"

Apply the patch and compile

Expand All @@ -35,21 +36,21 @@ There are (2) Dependencies. If you haven't built php before, you'll need to inst
The PHP source code. Download it, unpack it, compile it.

export PHP_VER=5.3.0
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
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"
mkdir php-build && cd php-build
../configure && make

Now you can download, Configure and compile the FPM frontend

wget http://launchpad.net/php-fpm/trunk/0.6/+download/php-fpm-0.6-$PHP_VER.tar.gz
tar -zxvf php-fpm-0.6-$PHP_VER.tar.gz
cd php-fpm-0.6-$PHP_VER
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"
cd "php-fpm-0.6-$PHP_VER"
mkdir fpm-build && cd fpm-build
../configure --srcdir=../ \
--with-php-src=../../php-$PHP_VER \
--with-php-build=../../php-$PHP_VER/php-build \
--with-php-src="../../php-$PHP_VER" \
--with-php-build="../../php-$PHP_VER/php-build" \
&& make

## Configure flags
Expand Down

0 comments on commit 5a53a6d

Please sign in to comment.