Difference between revisions of "install php with php-fpm"

From WebHostingNeeds.com
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<pre>
 
<pre>
 
cd /usr/local/src
 
cd /usr/local/src
wget http://php-fpm.anight.org/downloads/head/php-5.2.8-fpm-0.5.10.diff.gz
+
wget http://php-fpm.org/downloads/php-5.2.10-fpm-0.5.10.diff.gz
wget http://us2.php.net/get/php-5.2.8.tar.gz/from/us.php.net/mirror
+
wget http://us2.php.net/get/php-5.2.10.tar.gz/from/us.php.net/mirror
 
tar -zxvf php-5.2.8.tar.gz
 
tar -zxvf php-5.2.8.tar.gz
gzip -cd php-5.2.8-fpm-0.5.10.diff.gz | patch -d php-5.2.8 -p1
+
gzip -cd php-5.2.10-fpm-0.5.10.diff.gz | patch -d php-5.2.10 -p1
cd php-5.2.8
+
cd php-5.2.10
 
mkdir /usr/local/nginx-php
 
mkdir /usr/local/nginx-php
  

Revision as of 10:55, 19 June 2009

cd /usr/local/src
wget http://php-fpm.org/downloads/php-5.2.10-fpm-0.5.10.diff.gz
wget http://us2.php.net/get/php-5.2.10.tar.gz/from/us.php.net/mirror
tar -zxvf php-5.2.8.tar.gz
gzip -cd php-5.2.10-fpm-0.5.10.diff.gz | patch -d php-5.2.10 -p1
cd php-5.2.10
mkdir /usr/local/nginx-php

./configure -prefix=/usr/local/nginx-php -enable-fastcgi -enable-fpm -with-mcrypt -with-zlib -enable-mbstring -with-openssl -with-mysql -with-mysqli -with-gd -with-jpeg-dir -enable-gd-native-ttf -without-sqlite -disable-pdo -disable-reflection -with-curl -with-curlwrappers -enable-inline-optimization -disable-debug -disable-ipv6
make
make install


I have faced problem with curl, so i install url from source as per Install php from source