Newer version available at ryomo/vagrant-phalcon3-php7
Ubuntu 14.04(LTS)
- Apache
- SSL enabled.
- MariaDB
- root password is
pass
.
- root password is
- PHP 5.6
- phpMyAdmin
- Phalcon 2.1.x BETA
- If you want to use the stable version, change
PHALCON_BRANCH='2.1.x'
to2.0.x
inconf/provision.sh
.
- If you want to use the stable version, change
- Zephir
- Composer
- Phalcon DevTools
- Codeception
- Memcached
- If you want to use memcached, you should not use
Phalcon\Cache\Backend\Memcache
, but should usePhalcon\Cache\Backend\Libmemcached
.
- If you want to use memcached, you should not use
- Jenkins
- Xdebug
- Xdebug is disabled by default for performance reason.
- To enable Xdebug, run
sudo php5enmod xdebug
invagrant ssh
.
$ git clone [email protected]:ryomo/vagrant-phalcon.git
$ cd vagrant-phalcon/
$ vagrant up
No need to clone this repository
$ vagrant init ryomo/phalcon
- Edit Vagrantfile like below
$ vagrant up
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider 'virtualbox' do |v|
v.memory = 1536
v.cpus = 2
end
config.vm.box = 'ryomo/phalcon'
config.vm.synced_folder 'html', '/var/www/html', create: true,
owner: 'www-data',
group: 'www-data',
mount_options: ['dmode=775,fmode=664']
config.vm.network :forwarded_port, guest: 8080, host: 8081
config.vm.network :private_network, ip: '192.168.33.12'
end
$ vagrant ssh
$ cd /var/www/html/
$ sudo phalcon project myproject
URL: http://192.168.33.12/myproject/
or https://192.168.33.12/myproject/
$ sudo phalcon
Phalcon DevTools (2.0.7)
Available commands:~
$ zephir
_____ __ _
/__ / ___ ____ / /_ (_)____
/ / / _ \/ __ \/ __ \/ / ___/
/ /__/ __/ /_/ / / / / / /
/____/\___/ .___/_/ /_/_/_/
/_/
Zephir version 0.7.1b
Usage:~
$ sudo composer
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 1.0-dev (afd98b74f13b9def1b2447f16fd0bfd4d96dff94) 2015-08-31 09:58:50
Usage:~
$ sudo codecept
Codeception version 2.1.2
Usage:~