Skip to content

Instantly share code, notes, and snippets.

@shin1x1
Last active January 1, 2016 02:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shin1x1/8077029 to your computer and use it in GitHub Desktop.
Save shin1x1/8077029 to your computer and use it in GitHub Desktop.
# -*- 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.box = "opscode-centos65"
config.vm.box_url = "http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box"
#config.vm.network "forwarded_port", guest: 4000, host: 4000
#config.vm.network "forwarded_port", guest: 8000, host: 8000
config.vm.provision :shell, :inline => <<-EOT
#
# iptables off
#
/sbin/iptables -F
/sbin/service iptables stop
/sbin/chkconfig iptables off
#
# php
#
yum -y groupinstall "Development Tools"
yum -y install libxml2-devel
curl -L -o php-5.5.7.tar.bz2 http://jp1.php.net/get/php-5.5.7.tar.bz2/from/this/mirror
tar xvf php-5.5.7.tar.bz2
cd php-5.5.7
./configure --with-readline
make
make install
#
# phpdbg
#
cd sapi
git clone https://github.com/krakjoe/phpdbg
cd ../
./buildconf --force
./config.nice
make -j8
make install-phpdbg
EOT
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment