#!/bin/bash -ex yum -y update yum -y install httpd php mysql php-mysql chkconfig httpd on /etc/init.d/httpd start if [ ! -f /var/www/html/prep.tar.gz ]; then cd /var/www/html Wget here could be a script that prepares the web server for interaction with the database tar xvfz prep.tar.gz chown apache:root /var/www/html/rds.conf.php