Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@AbhishekGhosh
Created May 25, 2015 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AbhishekGhosh/bb0717c8d97dccbc6019 to your computer and use it in GitHub Desktop.
Save AbhishekGhosh/bb0717c8d97dccbc6019 to your computer and use it in GitHub Desktop.
WordPress LAMP Cloud Init HP Cloud
#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