|AMP Admin||Apr 18, 2009 6:56 am|
|Fernando Perez||Apr 18, 2009 7:56 am|
|Nuno Magalhães||Apr 18, 2009 7:59 am|
|AMP Admin||Apr 18, 2009 8:26 am|
|Edho P Arief||Apr 18, 2009 8:34 am|
|Jim Ohlstein||Apr 18, 2009 8:34 am|
|AMP Admin||Apr 18, 2009 9:08 am|
|Cliff Wells||Apr 18, 2009 9:33 am|
|Jim Ohlstein||Apr 18, 2009 9:38 am|
|AMP Admin||Apr 18, 2009 10:01 am|
|AMP Admin||Apr 18, 2009 10:12 am|
|Momchil Ivanov||Apr 18, 2009 4:20 pm|
|Jim Ohlstein||Apr 18, 2009 5:18 pm|
|Momchil Ivanov||Apr 19, 2009 5:29 am|
|Jim Ohlstein||Apr 19, 2009 6:59 am|
|AMP Admin||Apr 19, 2009 8:00 am|
|Edho P Arief||Apr 19, 2009 8:46 am|
|AMP Admin||Apr 19, 2009 9:22 am|
|Edho P Arief||Apr 19, 2009 7:39 pm|
|Momchil Ivanov||Apr 20, 2009 2:45 am|
|AMP Admin||Apr 20, 2009 5:53 am|
|Subject:||Re: Noob looking for PHP help|
|From:||Jim Ohlstein (jim....@gmail.com)|
|Date:||Apr 18, 2009 9:38:58 am|
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'
You may not need all of them.
Sent from my Verizon Wireless BlackBerry
-----Original Message----- From: "AMP Admin" <adm...@ampprod.com>
Date: Sat, 18 Apr 2009 11:08:29 To: <ngi...@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?
From: owne...@sysoev.ru [mailto:owne...@sysoev.ru] On Behalf Of Jim
Ohlstein Sent: Saturday, April 18, 2009 10:35 AM To: ngi...@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.
I keep reading that php-fpm is the best for large busy sites. Have you heard
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?
From: owne...@sysoev.ru [mailto:owne...@sysoev.ru] On Behalf Of Nuno
Magalhães Sent: Saturday, April 18, 2009 10:00 AM To: ngi...@sysoev.ru Subject: Re: Noob looking for PHP help
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