Permalink
c9f7390 May 20, 2016
19 lines (19 sloc) 419 Bytes
#cloud-config
apt_update: true
packages:
- apache2
- php5-mysql
- mysql-server
- libapache2-mod-php5
- php5-mcrypt
- php5-gd
- php5-curl
write_files:
- path: /var/www/html/info.php
content: |
<?php
phpinfo();
?>
runcmd:
- sed -i -e "s/index.html index.cgi index.pl index.php/index.php index.html index.cgi index.pl/" /etc/apache2/mods-enabled/dir.conf
- service apache2 restart