Created
June 27, 2014 01:11
-
-
Save brycefisher/d87a8eee8b98d5965e65 to your computer and use it in GitHub Desktop.
VideoVM
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
echo "BOOTSTRAP: Update apt-get" | |
sudo apt-get update -y | |
echo "BOOTSTRAP: Install some utilities" | |
sudo apt-get install -y curl git | |
echo "BOOTSTRAP: Install FFMPEG" | |
sudo apt-get install -y ffmpeg | |
echo "BOOTSTRAP: Install mysql server" | |
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password z3nc0d3r' | |
sudo debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password z3nc0d3r' | |
sudo apt-get -y install mysql-server | |
echo "BOOTSTRAP: Install and configure Apache" | |
sudo apt-get install -y apache2 | |
sudo a2enmod rewrite | |
sudo sed -i -e "11s/None/All/" /etc/apache2/sites-enabled/000-default | |
sudo service apache2 restart | |
echo "BOOTSTRAP: Install PHP" | |
sudo apt-get install -y php5 php5-gd php5-mysql php5-curl | |
echo "BOOTSTRAP: Install old drush" | |
sudo apt-get install -y drush | |
echo "BOOTSTRAP: Install Drupal 7 instance" | |
sudo chown www-data /var/www | |
drush dl drupal -y --destination=/var --drupal-project-rename=www | |
echo "BOOTSTRAP: Symlink the video module" | |
ln -s /vagrant/video/ /var/www/sites/all/modules/video | |
echo "BOOTSTRAP: Create the drupal database" | |
mysql -h localhost -u root --password=z3nc0d3r -e "CREATE DATABASE drupal;" | |
mysql -h localhost -u root --password=z3nc0d3r -e "GRANT ALL PRIVILEGES ON drupal.* TO 'vagrant_user'@'localhost' IDENTIFIED BY 'd.oftw' WITH GRANT OPTION;" | |
echo "BOOTSTRAP: Install drupal instance" | |
cd /var/www | |
drush si standard -y --account-name=vagrant --account-pass=vagrant --site-name="Video Module Test Environment" --db-url=mysql://vagrant_user:d.oftw@localhost/drupal | |
sudo chown www-data /var/www/sites/default/files | |
sudo chown www-data /var/www/sites/default/files/* | |
echo "BOOTSTRAP: Download and Enable Drupal Modules" | |
drush dis -y toolbar overlay | |
drush dl admin_menu views devel libraries ctools | |
drush en -y admin_menu views_ui devel devel_generate libraries | |
echo "BOOTSTRAP: Setup video module" | |
drush en -y video video_ui zencoder | |
mkdir -p /var/www/sites/all/libraries && cd /var/www/sites/all/libraries | |
git clone https://github.com/zencoder/zencoder-php.git zencoder | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment