All Projects → kenjis → vagrant-centos6-php

kenjis / vagrant-centos6-php

Licence: other
Vagrant CentOS 6.5 PHP 5.5 Development Environment

Programming Languages

HTML
75241 projects
ruby
36898 projects - #4 most used programming language

Vagrant CentOS6 PHP Development Environment

日本語

This project sets up a CentOS 6.5 (64bit) virtual machine to run your PHP project in. It mounts your PHP project directory so that you can use your favorite editors to work.

Note: If you are looking for CentOS 7, see https://github.com/kenjis/vagrant-centos7-php.

Requirements

Tested

  • Ubuntu 14.04 - VirtualBox 4.3.18 & Vagrant 1.6.5 & Git 1.9.1
  • Mac OS X 10.10.1 - VirtualBox 4.3.18 & Vagrant 1.6.5 & Git 1.9.3

What's in the Development Environment?

Some of the following are including using Chef Opscode repositories.

  • PHP 5.6
    • Xdebug
    • Zend OPcache
    • APCu
  • Apache 2.2
    • vhost setup for your PHP project
  • MySQL 5.1
    • php_dev and php_test databases
  • phpMyAdmin 4.0
  • PHPUnit 4.8
  • Composer
  • Git 1.7.1
  • MailCatcher 0.6.1

Optional

Enable configure in Vagrantfile.

  • MongoDB 2.6
  • Redis 2.4
  • Beanstalkd 1.9
  • Elasticsearch 1.4
  • Jenkins
  • PHP (You can install only one PHP version)
    • PHP 5.5
    • PHP 5.4
    • PHP 7.0

You can choose your favorite framework. (You can choose only one)

  • CodeIgniter
  • FuelPHP 1.x
  • Phalcon 2.x / 1.x

Suggesting Setup & Layout

Add this vagrant-centos6-php to your project:

$ git submodule add [email protected]:kenjis/vagrant-centos6-php.git vagrant
$ cd vagrant
$ vagrant up

Setup your directories something like this:

project/
├── public/
└── vagrant/

Accessing Your Project

Vagrant

Here are common commands:

  • vagrant up starts the virtual machine and provisions it
  • vagrant suspend will save the current running state of the machine and stop it
  • vagrant halt attempts a graceful shutdown of the machine
  • vagrant ssh gives you SSH access to the virtual machine
  • vagrant destroy will destroy the machine
  • vagrant status shows status of the machine
  • vagrant global-status shows status of all virtual machines

More in http://docs.vagrantup.com/v2/

Thanks to

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].