April 18, 2009 12:39PM
First, you need to download php and the patch, then apply the patch. There is a link to a working patch for php 5.2.9 in the php-fpm section of http://forum.nginx.org. At least it works for me using both 32 and 64 bit versions of CentOS 5.2.

I'm using my phone right now so I'm not sure, but if I recall correctly the file is named patch.php-fpm. Assuming it is (and change the name if it is something else), place it and the php tarball in /usr/local/src. Unpack the php tarball and you should have a directory called php-5.2.9.

To apply the patch run:

#cat patch.php-fpm | patch -d php-5.2.9 -p1

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 may not need all of them.

Jim

Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: "AMP Admin" <admin@ampprod.com>

Date: Sat, 18 Apr 2009 11:08:29
To: <nginx@sysoev.ru>
Subject: RE: Noob looking for PHP help


Ouch Jim. Lol

I see your point. I'm trying to get away from cPanel the best I can.

Ok, I'm going to compile it and give it a go!

One last thing... suggestions on what I should include when compiling php? Like is ' --enable-fastcgi --enable-fpm' all I need?

Thanks!

-----Original Message-----
From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of Jim Ohlstein
Sent: Saturday, April 18, 2009 10:35 AM
To: nginx@sysoev.ru
Subject: Re: Noob looking for PHP help

Babysit? How often is a new version of php released and who says you need to "upgrade" if your current configuration is working? MySQL comes out with new versions much more often, as does nginx.

Sounds like you may be better off with a control panel and let it "babysit" you.

Jim

------Original Message------
From: AMP Admin
Sender: owner-nginx@sysoev.ru
To: nginx@sysoev.ru
ReplyTo: nginx@sysoev.ru
Subject: RE: Noob looking for PHP help
Sent: Apr 18, 2009 11:26 AM

I keep reading that php-fpm is the best for large busy sites. Have you heard the same?

If so I think I have to install php and php-fpm manually but I'm not sure if that's the best option because how would we keep it up to date? Who has time to babysit new versions and then recompile?

Any suggestions?


-----Original Message-----
From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of Nuno Magalhães
Sent: Saturday, April 18, 2009 10:00 AM
To: nginx@sysoev.ru
Subject: Re: Noob looking for PHP help

Hi,

> yum install php-cgi php-cli php-mysql php-gd php-imap php-ldap php-odbc
> php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss
> php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp
> php-soap php-tidy

php-cgi oughta be enough (at least on Debian), the trick si to enable
it to start on boot, but if you use update-rc.d on you script it'll
do. Now make sure you fiddle with /etc/nginx/nginx.conf, there's a
part that's comented out about fast-cgi: configure that - pay
attention to the port the cgi server will be lsitening on, then HUP
nginx and give it a try.

HTH,
Nuno Magalhães

--
() ascii ribbon campaign - against html e-mail
/\ ascii-rubanda kampajno - kontraŭ html-a retpoŝto




Sent from my Verizon Wireless BlackBerry
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: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready