Skip to content

Vagrant setup of symfony2 with php-fpm 5.6, mysql, nginx, mongo, redis, elasticsearch and other cool stuff you might need

Notifications You must be signed in to change notification settings

sloba88/vagrant-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Symfony 2 Vagrant Development setup (originally forked from irmantas/symfony2-vagrant)

Installation

####This setup is based and tested with Ubuntu Trusty(14.04) 64 bit base box, with Vagrant 1.7.4 version and latest Virtual Box

  • 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/sloba88/vagrant-symfony.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.10 (IP address can be changed in Vagrantfile)

  • PhpMyAdmin is accessible with http://33.33.33.10/phpmyadmin

  • Vagrant automatically setups database with this setup:

    • Host: 33.33.33.10
    • Username: root
    • Password: root
    • Database: symfony

Installed components

Hints

####Startup speed To speed up the startup process use $ vagrant up --no-provision (thanks to caramba1337)

Sharing SSH key with the host machine

To share your public key with your host machine make sure to add config in ssh folder nano ~/.ssh/config

With content:

Host 127.0.0.1
  ForwardAgent yes

Check if your ssh key is added to local ssh-agent with

ssh-add -l

If not add it:

ssh-add ~/.ssh/id_rsa

####How to work

  • SSH to vagrant $ vagrant ssh

  • Navigate to /vagrant/www/

  • Commit git changes from inside the virtual machine

About

Vagrant setup of symfony2 with php-fpm 5.6, mysql, nginx, mongo, redis, elasticsearch and other cool stuff you might need

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published