Last active
January 27, 2016 22:42
-
-
Save acirtautas/3deb9b56db3b8d015d2b to your computer and use it in GitHub Desktop.
Vagrant quick start with PHP
This file contains hidden or 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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty32" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.synced_folder ".", "/var/www/html", :nfs => { :mount_options => ["dmode=777","fmode=666"] } | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y curl git apache2 php5 php5-cli php5-sqlite libapache2-mod-php5 augeas-tools | |
sudo augtool set /files/etc/php5/cli/php.ini/Date/date.timezone Europe/Vilnius | |
sudo augtool set /files/etc/php5/apache2/php.ini/Date/date.timezone Europe/Vilnius | |
sudo curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer | |
cd /var/www/html | |
sudo rm -f index.html | |
cp app/config/parameters.yml.dist app/config/parameters.yml | |
composer install | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment