Skip to content

Instantly share code, notes, and snippets.

@dobestan
Created July 10, 2014 14:18
Show Gist options
  • Save dobestan/5ab4725ee1385d1d6f82 to your computer and use it in GitHub Desktop.
Save dobestan/5ab4725ee1385d1d6f82 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 LTS 64bit ( Trusty64 ) + LAMP + Xeroboard Installation with Vagrant
apt-get update
apt-get upgrade -y
echo "**************************"
echo "Installing Build-Essential"
echo "**************************"
apt-get install build-essential git -y
echo "***********************"
echo "Installing MySQL"
echo "init password as 'root'"
echo "***********************"
sudo apt-get install mysql-common -y
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root'
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password root'
sudo apt-get install mysql-client -y
sudo apt-get install mysql-server -y
echo "*****************"
echo "Installing Apache"
echo "*****************"
sudo apt-get install apache2 -y
sudo apt-get install libapache2-mod-auth-mysql -y
sudo apt-get install libapache2-mod-php5 -y
echo "**************"
echo "Installing PHP"
echo "**************"
sudo apt-get install php5 -y
sudo apt-get install php5-mysql -y
sudo apt-get install php5-gd -y
sudo service mysql restart
sudo service apache2 restart
rm -rf /var/www/html
git clone https://github.com/xpressengine/xe-core.git /var/www/html
sudo chmod 707 /var/www/html
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty64"
config.vm.provision "shell", path: "init.sh"
config.vm.provision "shell", path: "install_zeroboard.sh"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 80, host: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment