Created
January 15, 2009 14:00
-
-
Save ozeias/47413 to your computer and use it in GitHub Desktop.
Install PHP CGI using source
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
railsbox.org:~ ozeias$ sudo apt-get install libtool libltdl3-dev libgd-dev libmcrypt-dev libxml2-dev libmysqlclient15-dev flex m4 awk automake autoconf bison make libbz2-dev libpcre3-dev libssl-dev zlib1g-dev vim re2c | |
railsbox.org:~ ozeias$ cd /usr/local/src | |
railsbox.org:~ ozeias$ wget http://it2.php.net/get/php-5.2.6.tar.gz/from/de2.php.net/mirror | |
railsbox.org:~ ozeias$ tar xzvf php-5.2.6.tar.gz | |
railsbox.org:~ ozeias$ wget http://php-fpm.anight.org/downloads/archive/php-5.2/php-5.2.6-fpm-0.5.9.diff.gz | |
railsbox.org:~ ozeias$ gzip -cd php-5.2.6-fpm-0.5.9.diff.gz | patch -d php-5.2.6 -p1 | |
railsbox.org:~ ozeias$ cd php-5.2.6 | |
railsbox.org:~ ozeias$ ./configure --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --with-openssl --with-mysql --with-mysql-sock --with-gd --with-jpeg-dir=/usr/lib --enable-gd-native-ttf --without-sqlite --disable-pdo --disable-reflection | |
railsbox.org:~ ozeias$ sudo make all install | |
railsbox.org:~ ozeias$ sudo strip /usr/local/bin/php-cgi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment