#Symfony 2 Vagrant Development setup
####This setup is based and tested with Ubuntu Precise 64 bit base box, with Vagrant 1.0.5 version (should be working with 1.1)
-
Install Vagrant using using the installation instructions
-
If you are on Windows OS install NFS support plugin more information and detailed installation instructions:
vagrant plugin install vagrant-winnfsd
-
Clone this repository
$ git clone https://github.com/irmantas/symfony2-vagrant.git
-
install git submodules
$ git submodule update --init
-
run vagrant (for the first time it should take up to 10-15 min)
$ vagrant up
-
Web server is accessible with http://33.33.33.100 (IP address can be changed in Vagrantfile)
-
PhpMyAdmin is accessible with http://33.33.33.100/phpmyadmin
-
Vagrant automatically setups database with this setup:
- Username: symfony
- Password: symfony-vagrant
- Database: symfony
- Nginx using puppet module from example42
- MySQL using puppet module from example42
- PHP-FPM (PHP 5.4)
- PhpMyAdmin
- MongoDB
- Redis
- GiT
- Composer installed globaly (use
$ composer self-update
to get the newest version) - Vim
- PEAR
- cURL
- Node.js
- npm
- less
- OpenJDK
- sass
- Compass
- Imagic
- Capistrano
- Capifony
- phpqatools using puppet module from (https://github.com/rafaelfelix/puppet-phpqatools)
- memcached
- example42 - for great nginx\mysql templates
- caramba1337 - for great ideas
- kertz - for great ideas
- Markus Fischer - for contribution
- Gustavo Schirmer - for contribution
####Startup speed
To speed up the startup process use $ vagrant up --no-provision
(thanks to caramba1337)
####Install Symfony Standard edition
-
SSH to vagrant
$ vagrant ssh
-
Clone symfony standard edition to somewhere temporary
$ git clone https://github.com/symfony/symfony-standard.git /tmp/symfony
-
Move symfony repository to server document root
$ mv /tmp/symfony/.git /vagrant/www/
-
Reset repository to restore project files
$ cd /vagrant/www && git reset --hard HEAD
-
Install dependencies
$ cd /vagrant/www && composer update
-
Edit
web/app_dev.php
to allow host
You tell me