Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 2.72 KB

README.md

File metadata and controls

86 lines (58 loc) · 2.72 KB

Phalcon & Vagrant & Ansible

Index

Overview

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.

Packages Included

  • Lamp Stack
    • Ubuntu Trusty 64 Bit (14.04)
    • Apache 2.4
    • PHP 5.6
    • MySQL 5.6
  • Git
  • Memcached
  • Xdebug
  • Phalcon
  • Composer

Requirements

  • Operating System: Windows, Linux, or OSX.
  • Virtualbox version 4.3.*
  • Vagrant version 1.4.*

Installation

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

To exit type:

$ exit

If you want to add or change stuff to Ansible go to the folder /ansible and to update run:

$ vagrant provision

Vagrant Credentials

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)

Local Editing

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.

Using SSH

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.

Software Suggestions

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