cmj2010 / simple-web-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-web-app

Start web server by user data

#!/bin/bash
yum -y update
yum -y install httpd php git php-pdo php-mysql mysql
chkconfig httpd on
git clone https://github.com/cmj2010/simple-web-app.git /var/www/html
service httpd start

Backup web site to s3

chmod 700 backup.sh

crontab -e

0 22 * * * /home/ec2-user/backup.sh

About

License:MIT License


Languages

Language:PHP 96.6%Language:Shell 3.4%