This is a fork of the Laravel Homestead development environment customized for Symfony2 by Hilenium.
- Ubuntu 14.04
- PHP 5.6
- MySQL
- Redis
- phpmyadmin
- Intl extension is pre-installed (required for symfony-icu)
- Imagick extension
- Nginx
- Apache2 pre-installed (but not configured out of the box)
- Memchached
- NFS Shared folder (by default)
The Homestead requires Vagrant, Virtualbox to work.
Login at [http://phpmyadmin.app]
username: root
password: secret
username: homestead
password: secret
composer global require hilenium/homestead-symfony2
To initialize a machine use the init option. This will install this Symfony2 box
homestead init
To configure your environment use the edit option.
homestead edit
The ip address of the Homestead machine to your system.
The amount of RAM memory of the virtual machine.
The number of virtual CPU's of the virtual machine.
The SSL key to allow the communication between virtual and host machines.
The folder mapping from your host machine (map) to be available on the virtual machine (to).
The sites you want to configure on the virtual machine. The configuration will be executed where you run the homestead provision or homestead up --provision commands.
The databases you want to automatically create on the virtual machine.
The environment variables you want available on the virtual machine.
To allow the access over SSH you must set your SSL key.
ssh-keygen -t rsa -C "you@hilenium.com"
This is an example of the implementation of a Symfony2 application in the symfony.app url.
- Associate the domain to the /etc/hosts file to the 192.168.10.10 IP address
(...)
192.168.10.10 phpadmin.app
192.168.10.10 hilenium.local
(...)
- Edit the homestead to make the new application available for your host system
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Code
to: /home/vagrant/Sites
sites:
- map: phpmyadmin.app
to: /home/vagrant/Code/phpmyadmin
- map: symfony.app
to: /home/vagrant/Code/hilenium-application/web
homestead init
homestead edit
homestead up
homestead halt
homestead provision
homestead ssh
The official Laravel local development environment.
Official documentation is located here.