Welcome! Log In Create A New Profile

Advanced

Re: Noob looking for PHP help

April 18, 2009 08:19PM
Momchil Ivanov Wrote:
-------------------------------------------------------
> На Saturday 18 April 2009 19:02:19 AMP Admin
> написа:
> > To apply the patch run:
> >
> > #cat patch.php-fpm | patch -d php-5.2.9 -p1
>
> you don't really need cat here:
>
> patch -d php-5.2.9 -p1 < patch.php-fpm

I believe the result is the same.

Correct me if I am wrong.

>
> >
> > I use the following configuration options for 32
> bit CentOS 5.2:
> >
> > '--enable-fastcgi' '--enable-fpm'
> '--enable-force-cgi-redirect'
> > '--with-mcrypt' '--with-zlib'
> '--enable-mbstring' '--with-openssl'
> > '--with-mysql' '--with-mysqli'
> '--with-mysql-sock' '--with-gd'
> > '--enable-gd-native-ttf' '--with-bz2'
> '--with-curl'
> > '--with-freetype-dir=/usr'
> '--with-jpeg-dir=/usr' '--with-pspell'
> > '--with-sqlite' '--enable-pdo'
> '--enable-reflection' '--with-gettext'
> > '--enable-soap' '--enable-dom' '--with-png-dir'
> '--with-mhash'
> > '--with-mcrypt'
>
> You should also use
> --prefix=/usr/local/php-fpm-5.2.9 or something
> else, just
> to have it in a separate directory, otherwise you
> mess up your system

I specifically stated the OS for which these instructions were meant (CentOS 5.2 - 32 bit). Following them to the letter, php and php-cgi will be installed in /usr/local/bin/ and php-fpm in /usr/local/sbin/. php-fpm.conf will be in /usr/local/etc/. php.ini will need to be in /usr/local/lib/.

In a stock CentOS php is in /usr/bin/ and php.ini in /etc/. I have done it this way now in dozens of servers and it has not "messed up" any systems. I use different options in 64 bit CenOS but they amount to the same basic thing.

>
> Momchil

--
Jim Ohlstein
Subject Author Posted

Noob looking for PHP help

AMP Admin April 18, 2009 09:57AM

Re: Noob looking for PHP help

Nuno Magalhães April 18, 2009 11:00AM

Re: Noob looking for PHP help

edogawaconan April 18, 2009 11:34AM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 11:26AM

Re: Noob looking for PHP help

Fernando Perez April 18, 2009 10:56AM

Re: Noob looking for PHP help

Jim Ohlstein April 18, 2009 11:35AM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 12:08PM

RE: Noob looking for PHP help

Cliff Wells April 18, 2009 12:33PM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 01:13PM

Re: Noob looking for PHP help

Jim Ohlstein April 18, 2009 12:39PM

RE: Noob looking for PHP help

AMP Admin April 18, 2009 01:02PM

Re: Noob looking for PHP help

Momchil Ivanov April 18, 2009 07:20PM

Re: Noob looking for PHP help

Jim Ohlstein April 18, 2009 08:19PM

Re: Noob looking for PHP help

Momchil Ivanov April 19, 2009 08:29AM

Re: Noob looking for PHP help

Jim Ohlstein April 19, 2009 10:00AM

RE: Noob looking for PHP help

AMP Admin April 19, 2009 11:00AM

Re: Noob looking for PHP help

edogawaconan April 19, 2009 11:46AM

RE: Noob looking for PHP help

AMP Admin April 19, 2009 12:22PM

Re: Noob looking for PHP help

edogawaconan April 19, 2009 10:40PM

Re: Noob looking for PHP help

Momchil Ivanov April 20, 2009 05:45AM

RE: Noob looking for PHP help

AMP Admin April 20, 2009 08:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready