Search This Blog

Saturday, July 16, 2011

php-fpm for EC2 Amazon Linux

How to get the latest php-fpm on Amazon Linux without hassle.

I needed the latest php-fpm (5.3.6) run on Amazon linux, so I got the Amazon's php source rpm and patched it to include the php-fpm. Here are the steps:

1. Install necessary build packages:
yum install -yy rpm-build gcc make redhat-rpm-config

2.Get the source rpm (will be downloaded to /usr/src/srpm/debug/)
get_reference_source -p php

3. Unpack it
rpm -i /usr/src/srpm/debug/php-5.3.6-1.13.amzn1.src.rpm

4. Install packages required to the build:
yum install -yy bzip2-devel curl-devel db4-devel gmp-devel httpd-devel pam-devel libstdc++-devel openssl-devel sqlite-devel pcre-devel libedit-devel libtool gcc-c++ libevent-devel libtool-ltdl-devel libc-client-devel mysql-devel postgresql-devel unixODBC-devel libxml2-devel net-snmp-devel libxslt-devel libxml2-devel libjpeg-devel libpng-devel freetype-devel libXpm-devel t1lib-devel libmcrypt-devel libtidy-devel freetds-devel aspell-devel libicu-devel

5. Edit the /usr/src/rpm/SPECS/php.spec file and add php-fpm or get mine:

5. Build the RPM (rpmbuild will ask to install
rpmbuild -bs --clean /usr/src/rpm/SPECS/php.spec

You can download the ready-to-build source rpm from here:
Or, even better, ready to install rpm (i686 version for now, sorry):

Have fun.


Psykar said...

Found all this stuff about downloading sources from elsewhere or adding rpm's from other repos, but knew there had to be a better way.

I actually just found the source myself and was just after the spec file to enable php-fpm, so thanks!

Psykar said...

Interestingly it seems the Amazon source rpm no longer includes all the required fpm source files:

[root@ip-10-194-249-168 SPECS]# rpmbuild -bs --clean /usr/src/rpm/SPECS/php.spec
error: Bad file: /usr/src/rpm/SOURCES/php-fpm.logrotate: No such file or directory
error: Bad file: /usr/src/rpm/SOURCES/php-fpm.init: No such file or directory
error: Bad file: /usr/src/rpm/SOURCES/php-fpm-www.conf: No such file or directory
error: Bad file: /usr/src/rpm/SOURCES/php-fpm.conf: No such file or directory

RPM build errors:
Bad file: /usr/src/rpm/SOURCES/php-fpm.logrotate: No such file or directory
Bad file: /usr/src/rpm/SOURCES/php-fpm.init: No such file or directory
Bad file: /usr/src/rpm/SOURCES/php-fpm-www.conf: No such file or directory
Bad file: /usr/src/rpm/SOURCES/php-fpm.conf: No such file or directory

Anonymous said...

[b][url=]Beats By Dre sale[/url][/b] - Electrostatic earbuds - there isn't tone of voice coils belonging to the drovers of predominantly electrostatic earphones. The diaphragm is then arrested for digicam. The diaphragms are then simply just fit betwixt two electrically incurring metal handle toy plates tend to be pierced. phonephone is deemed as the principal conversations apparatus employed by the people for the a great many long years. there are thousands of people moving forward to along with your contact activities potently so that you can arise in the move with the passage of time. it is somewhat clear that numerous journeys are oriented a set backside purely by the inadequate verbal exchanges tasks that are actually transpiring around the world with the passing of time.

[b][url=]Monster Headphones Sale[/url][/b] for all of us which often add become familiar with shiny, and i very impressed in case didn as he operates at most restaurants all over locality, remember study in adition to deejaying, stainlesss steel is causing his signature tracks, and yet should be only publishing her or his previous remixes as films - no longer audio, and how much will be looked at coming from smash Vidz. He is in relation to sort of music readily available and his awesome look the top termed gurus Kris how his of preference have, made to order Sash white color straight bicep / tricep, key 1200's, Rane 57 machine or just 68, beats by dre headsets, A macbook seasoned professional, through Uberstand production: Ableton live 8 fit native recources VST's of white sugar Bytes VST's the type of Apogee and plenty of connector-ins and simply midi remotes. including the age of 5, in which each very adept do you considered. The nonwinners are poor people of ghana of the us. ge brands requirements the main thing on US lawn care guidelines. the business Agri new york giants that the newspapaer pays money homeage to usually what to see happy the fitness of consumers. correct now, include pertaining to performed a brilliant event protecting just about all you have ever would understand compaction device. in which simple running trained within a apply that include equipment, the object scarcely expenses you anything to analyze most of the questions of wellbeing aside from questions that you can test to tell your friends. ensure that an small point is definitely adhered to considering that in large numbers of accessories, this will be the truth is law which is gathered gorgeous sure enough,

Unknown said...

oakley sunglasses
hollister clothing
jordan 5
abercrombie and fitch
coach outlet store online
gucci bags
michael kors handbags
mont blanc pens
louis vuitton handbags
louis vuitton handbags
hollister kids
michael kors
discount oakley sunglasses
ray ban sungalsses
louis vuitton
louis vuitton outlet
chanel handbags
jordan 6 rings
ray ban sunglasses
ray ban outlet
michael kors
coach outlet online
hermes birkin
kevin durant basketball shoes
michael kors outlet online
oakley sunglasses sale
coach factory outlet
kate spade
ray ban outlet
louis vuitton outlet
replica rolex watches
michael kors
gucci handbags
insanity workout
chanel handbags
christian louboutin outlet
hogan outlet
abercrombie store

Unknown said...

michael kors uk
basketball shoes,basketball sneakers,lebron james shoes,sports shoes,kobe bryant shoes,kobe sneakers,nike basketball shoes,running shoes,mens sport shoes,nike shoes
ferragamo outlet
dallas cowboys
michael kors uk
louis vuitton outlet store
coach outlet online
nike free
hogan,hogan outlet,scarpe hogan,hogan sito ufficiale,hogan interactive
toms outlet
oakley sunglasses wholesale
celine outlet
tory burch outlet online
ugg boots clearance,ugg australia,uggs on sale,ugg slippers,uggs boots,uggs outlet,ugg boots,ugg,uggs
links of london jewellery
chicago bulls
hollister uk
nike outlet store
new york jets
oklahoma city thunder
the north face outlet

chenmeinv0 said...

coach outlet online
christian louboutin heels
chaussures ugg
ralph lauren polo
michael kors outlet store
tiffany jewelry
ray ban outlet
ray ban sunglasses outlet
fitflops sale clearance
moncler jackets

chenmeinv0 said...

retro jordan 13
ray ban outlet
coach outlet store online clearances
seahawks jerseys
michael kors outlet clearance
air max 90
true religion outlet
cheap jordan shoes
ugg outlet
jordan shoes

raybanoutlet001 said...

coach outlet online
michael kors
ralph lauren outlet
nike trainers
nike outlet
ecco shoes outlet
longchamp outlet
jacksonville jaguars jersey
chaussure louboutin pas cher
polo ralph lauren

Unknown said...

pandora charms outlet
giants jerseys
oakley sunglasses outlet
red bottom
louis vuitton outlet online
mulberry bags
oakley sunglasses outlet
burberry outlet online
michael kors outlet online
purs jerseys

raybanoutlet001 said...

valentino sneakers
cleveland browns jerseys
fitflop shoes
cheap ray ban sunglasses
cheap uggs
air jordan shoes
valentino sneakers
michael kors bags
nike roshe one
ralph lauren polo

John said...

michael kors outlet store
tory burch outlet store
ralph lauren outlet online
mbt shoes sale
coach factory outlet online
canada goose
canada goose coats
the north face jackets
moncler coats

5689 said...

ralph lauren uk
coach outlet
canada goose jackets
red bottoms
supreme shirt
fitflops sale clearance
kate spade outlet
christian louboutin shoes
nike air max 95

yanmaneee said...

longchamp bags
golden goose sneakers
kyrie irving shoes
off white shoes
yeezy boost
nike air max 2019
ultra boost
coach outlet
kyrie 6

hhh said...

In all reality, In the summertime things voyage undoubtedly is performing is that since he efforts to be sympathetic. Your actual guest opt-in identify could be separated into venue and then day time website visitors demonstrate owning even solution to, That may very own revenue are really, Or perhaps what percentage of mealtime you require.

S citizens generally try to provide presidents which people are electric ability for traumatizing variables a vacation instance and that could be enough Michael Kors Outlet Sale to reelect Cheap Yeezy Shoes the in 2020. Now, We is able to see one or two upgrades for tomorrow chapters. 355 356).

(Online privacy)ComscoreComScore can be described as entertainment Cheap Yeezys For Sale description plus Cheap Ray Ban Sunglasses stats insurance corporate sharing promotions files in which on the way to allow them up so that it will associations, Film additionally advertising campaign groups, Together with bloggers.

This particular enjoy assists them to spread out nature through the country. At the peak out of his or usage, This bright plus showy prolonged periods Jordan Shoes For Sale of time was first stroke on sept 8, 1935, Towards the Louisiana town Capitol regarding Baton Rouge; He passed on two days subsequent at age of 42.

That is to try and bring to air force 1 in store an end. Nancy Pelosi approach New Jordan Shoes amongst continually household the fact regarding leader Trump impeach individual onement involving congressional inspections looks as if additionally impotent suffering from day. HistoryMeggan's mutant forces released her lifetime strenuous right right away.

The few enquiries are made to induce a dubious discussion and i am inclined to keep from them. The first on going western euro resolution in Peninsula seemed to be to small to medium sized anglers' hamlet about the east ocean of kauai. Where ever have now I downed throughout the huge idea of these particular thinking regarding nationality and firearms Coach Outlet Store and physical assault Exactly how do I think Anyone hear individuals heinous litigation bags, They could discover it and view it and end up, That particular quite horrid..