I wanted to get a VM configured quickly for building Craft sites, this is what I did:
https://puphpet.com/#deploy-target
I want a local VM working with Vagrant + VirtualBox.
- Provider: VirtualBox
- Local VM OS: Ubuntu 14.04 LTS x64
- Local VM IP: Default
- Local VM Memory: Default (512mb)
- Host port: default
- Box port: default
- Box Sync Folder Source: Default
- Box Sync Folder Target: Default
- Shared folder type: Default
- vim
- I chose to install MailCatcher
Read this and determine if it's important to you. I copied my .vimrc
I didn't configure anything here.
I chose Apache. I like nginx, but I won't be using it for most sites.
I used the default (php, rewrite), I'm comfortable enough with installing modules after the fact if I need them.
I did not enable PageSpeed or Spdy
- Server name: craft.dev
- Server Aliases: www.craft.dev
- Document root: /var/www/craft
- Port: 80
- Environment Variables: default
- AllowOverride: default
- Directory Options: default
- Custom directives: none
- Enable SSL: Not this time.
- Install PHP: duh
- PHP Version: I choose 5.5, you can choose either.
- Composer: Yes
- ini Settings: default
- PHP Timezone: your call
- PHP Modules: cli, mcrypt, intl, curl, imagick
- Pear Modules: default (none)
- PECL Modules: default
I chose to install xdebug w/ the default settings
Install MySQL. You don't need my instructions for the rest :)
Skipped
Skipped
- Unzip the PuPHPet file and put the ./puphpet folder and ./Vagrantfile in the folder that you want to share with your VM.
- Run 'vagrant up'
- Wait...
- Wait some more...
- Hit the IP you configured as the host in your browser This page is coming from ./html/index.html
- Configure yout hosts file so that craft.dev points to the aforementioned IP
I'm using Sequel Pro. Connect via SSH. Enter the MySQL credentials that you supplied. For the SSH credentials, 'vagrant' is the user, 127.0.0.1 is the host. Instead of entering a password, specify the private key found in puphpet/files/dot/ssh/ (id_rsa)