Tuesday, December 3, 2013

Boot strapping - automatically install and start Apache on EC2 launch

Here is a very common user data boot strapping script for installing Apache, PHP, and starting the Apache server:
#!/bin/sh
yum -y install httpd php
chkconfig httpd on
/etc/init.d/httpd start

No comments:

Post a Comment