- Overview
- Packages Included
- Requirements
- Installation
- Vagrant Credentials
- Local Editing
- Using SSH
- Software Suggestions
I use the default Ubuntu Trusty 64Bit (14.04) from Vagrant
When you provision Vagrant for the first time it's always the longest procedure ($ vagrant up
). Vagrant will download the entire Linux OS if you never used Vagrant on the project.
By default i have set this to use 2048MB ram and 2 cores. You can change this in Vagrantfile
and simply run $ vagrant reload
.
- Lamp Stack
- Ubuntu Trusty 64 Bit (14.04)
- Apache 2.4
- PHP 5.6
- MySQL 5.6
- Git
- Memcached
- Xdebug
- Phalcon
- Composer
- Operating System: Windows, Linux, or OSX.
- Virtualbox version 4.3.*
- Vagrant version 1.4.*
First you need a Git enabled terminal. Then you should clone this repository locally.
$ git clone https://github.com/seralaci/Phalcon-Vagrant-Ansible.git
Now you are ready to provision your Virtual Machine, run:
$ vagrant up
If you want to change any default settings. Once provisioned, to access the box, simply type:
$ vagrant ssh
$ exit
If you want to add or change stuff to Ansible go to the folder /ansible and to update run:
$ vagrant provision
These are credentials setup by default:
- Host Address: 192.168.50.4 (Change in Vagrantfile if you like)
- SSH: vagrant / vagrant (If root password fails, run
$ sudo passwd
and set one) - MySQL: root / vagrant (can change in ansible/vars/mysql.yml if you wish)
On your Host computer open any file explorer or IDE and navigate to your project root
.
This folder is mounted to the Virtual Machine. Any changes to files within here will reflect
realtime changes in the Virtual Machine.
If you are using .git you should initialize your repository locally rather than on the server. This way you will not have to import keys into your Virtual Machine.
Files in the shared directory of your project root
are by default given ownership of www-data:www-data
so
that you will have no problems with saving cached files.
If you are using Linux you can use the built in Terminal to do everything. The same goes with OSX.
For Windows, you can use Git SCM and Bash, Sourcetree