Phalcon + DevTools Vagrant Setup

Patreon | https://www.patreon.com/jream

Full Course @ http://jream.com/product/view/phalcon-php

Setup a Vagrant Box with: PHP 5.5, MySQL 5.5, Redis Server, Phalcon, Phalcon Dev Tools, Git and Composer to work along with me.

Commands Used:
————————–
$ sudo apt-get update
$ sudo apt-get install -y python-software-properties
$ sudo add-apt-repository ppa:ondrej/php5
$ sudo apt-get update
$ sudo apt-get install -y php5 php5-dev apache2 libapache2-mod-php5 mysql-server php5-mysql redis-server curl htop git-core

$ git clone –depth=1 git://github.com/phalcon/cphalcon.git
$ cd cphalcon/build
$ sudo ./install

$ vi /etc/php5/mods-available/phalcon.ini
# Add: extension=phalcon.so
$ sudo php5enmod phalcon

$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer

$ mkdir phalcon-tools

$ nano composer.json
# Add:
{
“require”: {
“phalcon/devtools”: “dev-master”
}
}

$ composer install

$ rm composer.json composer.lock
$ mv vendor/phalcon/devtools/* phalcon-tools

$ sudo ln -s ~/phalcon-tools/phalcon.php /usr/bin/phalcon

source