Welcome! Log In Create A New Profile

Advanced

How to compile for 5.3.2 standalone

Posted by nabeel 
How to compile for 5.3.2 standalone
April 30, 2010 11:06PM
Is there a way to compile standalone? I'm using the Ubuntu 5.3.2
package, I don't want to lose how that has everything setup, and the
modules and all. But php-fcgi/spawn-fcgi aren't working as well as
when I had php-fpm on PHP 5.2.x, which I was able to compile against
the Ubuntu source (http://nsslive.net/2010/04/04/building-php-fpm-
against-ubuntu-php-packages/)

So, I'm not quite sure how to compile it so it's standalone.

Thanks!
Jérôme Loyet
Re: How to compile for 5.3.2 standalone
May 01, 2010 04:02AM
mix the instruction you have in the blog you mentioned with
instructions from http://php-fpm.org/download/ (experimental)

++ Jerome

2010/5/1 Nabeel <nabeel@nsslive.net>:
> Is there a way to compile standalone? I'm using the Ubuntu 5.3.2
> package, I don't want to lose how that has everything setup, and the
> modules and all. But php-fcgi/spawn-fcgi aren't working as well as
> when I had php-fpm on PHP 5.2.x, which I was able to compile against
> the Ubuntu source (http://nsslive.net/2010/04/04/building-php-fpm-
> against-ubuntu-php-packages/)
>
> So, I'm not quite sure how to compile it so it's standalone.
>
> Thanks!
>
the_guv@vpsBible.com
Re: How to compile for 5.3.2 standalone
May 03, 2010 04:02AM
#this includes all dependencies. just change the ./configure command
below to whatever flavor:-

aptitude install -y build-essential m4 wget
aptitude install -y libevent-dev libxml2-dev
cd /usr/local/src
#autoconf
wget http://ftp.gnu.org/gnu/autoconf/autoconf-$AC_VER.tar.gz
tar xvf autoconf-$AC_VER.tar.gz
cd autoconf-$AC_VER
../configure
make && make install
cd ..

#libevent
wget "http://www.monkey.org/~provos/libevent-$LE_VER.tar.gz"
tar -zxvf "libevent-$LE_VER.tar.gz"
cd "libevent-$LE_VER"
../configure && make
make install
cd ..

#PHP-FPM
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
mkdir /etc/php fpm-build && cd fpm-build
########## ADD TO THIS LINE ############
.../configure --with-config-file-path=/etc/php --with-fpm --with-
libevent=/usr/local/lib
########################################
make
make install
echo 'include_path = "/usr/local/lib/php:/php/includes"' >> /etc/php/
php.ini
update-rc.d php-fpm defaults; invoke-rc.d php-fpm start
########################################
#.. and you can play with a /etc/php/php.ini file too.
Re: How to compile for 5.3.2 standalone
May 03, 2010 05:00AM
I wouldn't recommend this. I'd switch to using the php svn version.
Not the launchpad version.

On May 3, 2010, at 1:01 AM, "the_guv@vpsBible.com" <gg@vpsbible.com>
wrote:

> #this includes all dependencies. just change the ./configure command
> below to whatever flavor:-
>
> aptitude install -y build-essential m4 wget
> aptitude install -y libevent-dev libxml2-dev
> cd /usr/local/src
> #autoconf
> wget http://ftp.gnu.org/gnu/autoconf/autoconf-$AC_VER.tar.gz
> tar xvf autoconf-$AC_VER.tar.gz
> cd autoconf-$AC_VER
> ./configure
> make && make install
> cd ..
>
> #libevent
> wget "http://www.monkey.org/~provos/libevent-$LE_VER.tar.gz"
> tar -zxvf "libevent-$LE_VER.tar.gz"
> cd "libevent-$LE_VER"
> ./configure && make
> make install
> cd ..
>
> #PHP-FPM
> 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
> mkdir /etc/php fpm-build && cd fpm-build
> ########## ADD TO THIS LINE ############
> ../configure --with-config-file-path=/etc/php --with-fpm --with-
> libevent=/usr/local/lib
> ########################################
> make
> make install
> echo 'include_path = "/usr/local/lib/php:/php/includes"' >> /etc/php/
> php.ini
> update-rc.d php-fpm defaults; invoke-rc.d php-fpm start
> ########################################
> #.. and you can play with a /etc/php/php.ini file too.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 213
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready