Created
February 24, 2011 02:02
-
-
Save nabeelio/841608 to your computer and use it in GitHub Desktop.
How to install php-fpm against Ubuntu's PHP packages
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
sudo apt-get install php5-cli php5-cgi php5-common \ | |
php5-curl php5-dev php5-gd php5-mcrypt \ | |
php5-memcache php5-mysql php5-suhosin | |
# Get from the Debian repo | |
sudo apt-get build-dep php5-common | |
sudo apt-get -b source php5-common | |
# Change this to the PHP version being used! | |
# Look on http://launchpad.net/php-fpm/master to match it | |
export PHP_VER=5.2.10 | |
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 | |
sudo ../configure --srcdir=../ \ | |
--with-php-src="../../php5-5.2.10.dfsg.1" \ | |
--with-php-build="../../php5-5.2.10.dfsg.1/cgi-build" \ | |
--with-fpm-conf="/etc/php5/fpm/php-fpm.conf" \ | |
--with-libevent="/usr/lib" | |
> sudo make | |
> sudo make install | |
> sudo update-rc.d php-fpm defaults | |
# Resulting in: | |
Installing PHP FPM binary: /usr/local/bin/php-fpm | |
Installing PHP FPM config: /etc/php5/fpm/php-fpm.conf | |
Installing PHP FPM man page: /usr/local/man/man1/php-fpm.1 | |
Installing PHP FPM init script: /etc/init.d/php-fpm | |
*** FPM Installation complete. *** | |
run: | |
`update-rc.d php-fpm defaults; invoke-rc.d php-fpm start` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment