Created
May 25, 2015 19:05
-
-
Save AbhishekGhosh/bb0717c8d97dccbc6019 to your computer and use it in GitHub Desktop.
WordPress LAMP Cloud Init HP Cloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
packages: | |
- apache2 | |
- php5 | |
- php5-mysql | |
- mysql-server | |
runcmd: | |
- wget http://wordpress.org/latest.tar.gz -P /tmp/ | |
- tar -zxf /tmp/latest.tar.gz -C /var/www/ | |
- mysql -e "create database wordpress; create user 'wpuser'@'localhost' identified by 'changemetoo'; grant all privileges on wordpress . \* to 'wpuser'@'localhost'; flush privileges;" | |
- mysql -e "drop database test; drop user 'test'@'localhost'; flush privileges;" | |
- mysqladmin -u root password 'changeme' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment