Skip to content

Instantly share code, notes, and snippets.

@shin1x1 shin1x1/Vagrantfile
Last active Jan 1, 2016

Embed
What would you like to do?
# -*- 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
You can’t perform that action at this time.