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: http://www.kuliyev.com/php.spec

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: http://www.kuliyev.com/php-5.3.6-1.13.amzn1.src.rpm
Or, even better, ready to install rpm (i686 version for now, sorry): http://www.kuliyev.com/php-fpm-5.3.6-1.13.amzn1.i686.rpm

Have fun.

30 comments:

Psykar said...

Great!
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=http://www.beatsbydrepad.com/]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=http://www.beatsbydrevogue.com]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.


http://www.beatsbydrekings.com 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,

Guo Guo said...

caihuanglin20150304
ray ban glasses
canada goose jacket
ray bans
burberry outlet
canada goose
hollister co
michael kors outlet online
jordan 3
hollister clothing store
michael kors outlet online sale
coach outlet
ralph lauren
mont blanc legend
toms wedges
red timberland boots
tory burch outlet
gucci belts
ugg boots
ugg boots
jordan 11 columbia
abercrombie & fitch new york
louis vuitton handbags
coach outlet store online
polo outlet
canada goose sale
coach outlet
christian louboutin outlet
ugg outlet
michael kors outlet online
abercrombie kids

chenlina said...

chenlina20150611
oakley sunglasses
hollister clothing
jordan 5
abercrombie and fitch
coach outlet store online
gucci bags
www.louisvuitton.com
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
timberlands
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

Da Shuai Guo said...

guowenhao0803
air jordan 4
swarovski crystal
ray ban sunglasses
air max 2014
oakley sunglasses
celine outlet
coach outlet online
barcelona jersey
ray ban sunglasses
new orleans saints jerseys
pandora
louis vuitton outlet
babyliss
cartier love bracelet
coach factory outlet
kobe shoes
coach outlet
vibram fivefingers
nike outlet store
lacoste polo shirts
insanity workout
links of london uk
converse all star
prada shoes
arizona cardinals jerseys
ray ban sunglasses
oakley sunglasses
louis vuitton handbags
instyler ionic styler
juicy couture outlet
cheap mlb jerseys
rolex watches
tory burch outlet
true religion jeans, http://www.truereligionoutletstore.us.com
stuart weitzman boots
cheap football shirts
miami heat jersey
burberry outlet online, http://www.burberryoutletonlinestore.com.co
hollister clothing
nike air max uk

风骚达哥 said...

20150922 junda
abercrombie
Hollister uk
Air Jordan 3 III Retro Free Shipping
louis vuitton
coach outlet
Cheap Jordans For Sale Wholesale
canada goose jackets
Christian Louis Vuitton Red Bottoms
New Louis Vuitton Handbags Outlet
Official Coach Factory Outlet Online Sale
Jordan 13 Shoes For Sale
canada goose outlet
Real Louis Vuitton Bags
nike trainers
Jordan 8 Bugs Bunny
Authentic Louis Vuitton Belts Outlet Store
burberry outlet
Louis Vuitton Bags On Sale
true religion jeans
canada goose outlet online
Lebron James Basketball Shoes Sale
Louis Vuitton Handbags Discount Off
nfl jerseys
Abercrombie T-Shirts
Discount Ray Ban Polarized Sunglasses
coach factory outlet online
Louis Vuitton Outlet USA
celine
Louis Vuitton Luxury Official Website
michael kors outlet

Minko Chen 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
1026MINKO

Chenzhen 20160303chenzhen said...

louis vuitton handbags
air jordan homme
michael kors outlet
true religion sale
lebron james shoes 13
louis vuitton handbags
cheap ray ban sunglasses
coach outlet
louis vuitton handbags
coach factory outlet
cheap oakleys
michael kors outlet
louis vuitton outlet
ralph lauren
louis vuitton outlet stores
tory burch flats
adidas running shoes
nfl jerseys wholesale
michael kors outlet
ugg outlet
copy watches
toms outlet
timberlands
hollister shirts
coach outlet online
oakley sunglasses
kevin durant shoes
oakley vault
nike roshe run
oakley canada
coach outlet
nfl jerseys
michael kors bags
ugg boots
louis vuitton outlet stores
ray ban sunglasses
michael kors handbags
celine bags
insanity workout
ray ban sunglasses outlet
20160321chenzhen

chenlili said...

2016-4-21 xiaobao
ghd hair straighteners
louis vuitton bags
louis vuitton
nike trainers
tory burch sale
michael kors handbags
nike sb shoes
oakley sunglasses wholesale
christian louboutin
celine handbags
mont blanc pens
hollister uk
hollister clothing
air jordans
michael kors outlet
north face outlet
nfl jerseys
cheap jordans
louis vuitton outlet stores
nike basketball shoes
louis vuitton outlet
kate spade handbags
coach outlet
kate spade handbags
nike sb
tory burch outlet
michael kors outlet
oakley sunglasses
adidas shoes
louis vuitton outlet
lebron james shoes
fitflops
michael kors outlet
oakley sunglasses
ralph lauren polo
louis vuitton outlet
replica watches
caoch outlet
michael kors outlet online
adidas superstar

chenlili said...

2016-4-21 xiaobao
ghd hair straighteners
louis vuitton bags
louis vuitton
nike trainers
tory burch sale
michael kors handbags
nike sb shoes
oakley sunglasses wholesale
christian louboutin
celine handbags
mont blanc pens
hollister uk
hollister clothing
air jordans
michael kors outlet
north face outlet
nfl jerseys
cheap jordans
louis vuitton outlet stores
nike basketball shoes
louis vuitton outlet
kate spade handbags
coach outlet
kate spade handbags
nike sb
tory burch outlet
michael kors outlet
oakley sunglasses
adidas shoes
louis vuitton outlet
lebron james shoes
fitflops
michael kors outlet
oakley sunglasses
ralph lauren polo
louis vuitton outlet
replica watches
caoch outlet
michael kors outlet online
adidas superstar

Qing Cai said...

cartier watches
air jordan shoes
ralph lauren polo shirts
ferragamo outlet
michael kors handbags wholesale
ray ban sunglasses
burberry outlet
true religion jeans outlet
nhl jerseys
michael kors online outlet
polo ralph lauren
true religion outlet
kate spade uk
cheap nhl jerseys
michael kors handbags clearance
louis vuitton handbags outlet
coach outlet store
fitflops sale clearance
michael kors handbags sale
coach outlet store
nike tn pas cher
cheap ray ban sunglasses
beats by dre
tory burch outlet online
louis vuitton outlet
lululemon outlet
nike roshe
louis vuitton pas cher
cheap soccer jerseys
beats by dre
cai20160516

Gege Dai said...

oakley sunglasses
tiffany jewelry
foamposite shoes
louis vuitton bags cheap
coach outlet online
michael kors outlet
timberland shoes
nike blazer pas cher
polo ralph lauren
ugg outlet
cheap snapbacks
louboutin pas cher
mulberry uk
prada sunglasses for women
cheap uggs
michael kors outlet
swarovski outlet
burberry outlet
ugg boots
air max 90
cartier uk
michael kors outlet online
mulberry handbags
michael kors outlet
coach outlet store
mbt shoes
oakley sunglasses
valentino outlet
fitflops outlet
uggs on sale
true religion jeans
nike outlet store
louis vuitton handbags
oakley sunglasses wholesale
ferragamo shoes
czq20160726

dong dong23 said...

timberland boots
michael kors outlet
louis vuitton handbags
toms shoes
nike roshe run
louis vuitton outlet
toms shoes
christian louboutin shoes
cheap jordan shoes
cheap nfl jerseys
cheap jordans
true religion outlet
michael kors outlet
adidas originals
kate spade
michael kors outlet online
gucci
jordan shoes
michael kors handbags
louis vuitton
polo ralph lauren outlet
jordan 3 infrared
ed hardy clothing
ghd hair straighteners
christian louboutin sale
oakley sunglasses
jordan 4 toro
toms shoes
adidas originals shoes
michael kors handbags
michael kors outlet clearance
coach factory outlet
ray ban wayfarer
coach outlet
longchamp handbags
true religion outlet
cheap oakley sunglasses
louis vuitton outlet
louis vuitton outlet
vans shoes outlet
20168.1wengdongdong

dong dong23 said...

uggs on sale
ugg outlet
fitflops
coach outlet store online clearances
chaussures christian louboutin
nike air max 90
jordans for sale
celine handbags
burberry outlet
uggs pas cher
201610.17wengdongdong

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
20172.6chenjinyan

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
20172.6chenjinyan

raybanoutlet001 said...

fitflops sale clearance
packers jerseys
longchamp le pliage
michael kors handbags clearance
michael kors handbags
ralph lauren outlet online
the north face
gucci borse
michael kors handbags

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

shengda xu 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
xushengda0528

kkk said...

mbt
ralph lauren sale
fitflops
polo ralph lauren
adidas yeezy boost
mont blanc pens
adidas yeezy boost
true religion
yeezy shoes
coach outlet store online
170626yueqin

aaa kitty20101122 said...

yeezy boost 350 v2
yeezy boost 350 v2
air yeezy
timberland outlet
timberland boots
hogan outlet
hogan outlet online
adidas ultra boost
adidas ultra
adidas ultra boost

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
uggs
ralph lauren outlet online
mbt shoes sale
coach factory outlet online
canada goose
canada goose coats
the north face jackets
moncler coats
20180314yuanyuan

ninest123 said...

ralph lauren outlet
canada goose jackets
cheap oakley sunglasses
adidas shoes
air max 90
kate spade outlet
louis vuitton outlet
jordan shoes
cheap oakley sunglasses
ralph lauren outlet
mt0420

Yaro Gabriel said...

www0605


michael kors outlet
cheap jordans
michael kors outlet
canada goose outlet
cavaliers jerseys
tory burch outlet
true religion jeans
cheap mlb jerseys
canada goose outlet
kd 9

fangyaoting said...

20180616 junda
canada goose outlet
pandora charms
freshjive clothing
alife clothing
ugg outlet
nfl jersey wholesale
ubiq shoes
chrome hearts outlet
pandora charms sale clearance
cheap jordans

5689 said...

zzzzz2018.7.30
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

jeje said...

air jordan chaussure site fiable Avant de nettoyer, air jordan future avis vous êtes censé connaître les ressources de l'empailleur. Il sera très sale adidas zx flux w chaussures noir or si vous nettoyez l'empeigne avec un chiffon trop humide. Nous chaussure nike free femme connaissons tous beaucoup de gens en forme qui ne sont air jordan future low homme toujours pas contents de tout leur corps, alors commencez asics gel lyte v diamond à être heureux maintenant avec ce que vous avez basket nike basse femme pas cher pour la raison qu'il y a certainement quelqu'un qui adidas zx 750 homme pas cher vous a vu qui échangerait des places avec vous dans une minute.

yanmaneee said...

supreme hoodie
retro jordans
christian louboutin
nike shox
supreme clothing
converse outlet
yeezy
adidas tubular shadow
christian louboutin shoes
yeezy boost 700