Last active
January 1, 2016 02:09
-
-
Save shin1x1/8077029 to your computer and use it in GitHub Desktop.
Vagrantfile for phpdbg
@see http://www.1x1.jp/blog/2013/12/phpdbg.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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