Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created March 25, 2017 07:19
Show Gist options
  • Select an option

  • Save stanwu/f0197437fc423d8fd7d16bcc6db291b0 to your computer and use it in GitHub Desktop.

Select an option

Save stanwu/f0197437fc423d8fd7d16bcc6db291b0 to your computer and use it in GitHub Desktop.
Auto LAMP server Vagrant script
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install tasksel
echo Install LAMP server...
echo mysql-server-5.5 mysql-server/root_password password PASSWORD | debconf-set-selections
echo mysql-server-5.5 mysql-server/root_password_again password PASSWORD | debconf-set-selections
apt-get install -y lamp-server^
SHELL
@stanwu

stanwu commented Mar 25, 2017

Copy link
Copy Markdown
Author

default MySQL password is PASSWORD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment