This seems like it should be easy to answer, but as a php newbie, I can't find out what exactly I need to install.
Some sites recommend just httpd, php and php-common; other suggestions include php-fpm and mod_fastcgi, as well as a bunch of php packages.
My goal is to be able to set up my dev machine and an amazon EC2 instance to be as similar as possible.
What do I need to install?
On Fedora 17 it's sufficient to install the
php
package. This pulls in all necessary dependencies, including Apache.On previous versions of Fedora, and current versions of RHEL, you need to install
mod_php
.Try AMI
ami-2ea50247
from the Fedora Cloudimage site.Then use as
user-data
in the AWS-console:I just tried it because I was curious. Works like charm. Thanks to
gholms
from#fedora-cloud
on Freenode for the hint about adding the hashbang.If you need more machines, just "launch more like this".
You might want to add this to user-data:
To make it start automatically and right away after instance creation. Your pick.