Showing posts with label install. Show all posts
Showing posts with label install. Show all posts

Tuesday, December 3, 2013

Boot Strap : MySQL

Here is a user data boot strap script for installing and starting Oracle MySQL:

#!/bin/sh 
yum -y install mysql-server 
/etc/init.d/mysqld start 
echo -e '\n\nsudo /etc/init.d/mysqld start' >> /etc/rc.d/rc.local

Tuesday, April 16, 2013

User data to install Apache and PHP


One of the most basic components on an EC2 instance is Apache and PHP.  Installing Apache and PHP is made easy with a short shell script, yum, and user data.  Here is all that needs to be placed in the user data section of the EC2 instance:

#!/bin/sh
yum -y install httpd php
chkconfig httpd on
/etc/init.d/httpd start