Search code examples
linuxlampvagrant

Multiple vhosts with simple LAMP in Vagrant


I am trying to create a simple LAMP through Vagrant that can support multiple websites stored in /var/www. That can be done with vhosts.

Each project should end in .dev

Cant stand the idea creating each build that supports one project with a database each.

I cant make head or tails with Puppet or Chef. I rather avoid that, but happy to clone it from a repo.

I need some advice or point me to the right direction.

Thanks


Solution

  • Most simple straightforward Vagrant setup

    https://github.com/fideloper/Vaprobash

    Watch "Apache Virtual Hosts Configuration" video for quick start on creating virtual host

    Dont forget to uncomment your prefered DB type before installing :)

    Bonus: The only vagrant setup I could connect to db by Sequel Pro in seconds