Skip to content

Instantly share code, notes, and snippets.

@stovak
Created March 8, 2013 16:29
Show Gist options
  • Save stovak/5117713 to your computer and use it in GitHub Desktop.
Save stovak/5117713 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Downloading Cert from fedoraproject...\n"
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm >> /tmp/apigee-drupal-install.log
echo "Installing Packages from various repos (this may take a few minutes)...\n"
sudo yum install -y httpd mysql mysql-server git php php-mysql php-xml gd gd-devel php-gd php-pear ImageMagick ImageMagick-devel >> /tmp/apigee-drupal-install.log
echo "Restarting Apache...\n"
sudo service httpd start >> /tmp/apigee-drupal-install.log
echo "Restarting MySQL...\n"
sudo service mysqld start >> /tmp/apigee-drupal-install.log
echo "Making sure MySQL and Apache run at startup...\n"
chkconfig --levels 35 mysqld on >> /tmp/apigee-drupal-install.log
chkconfig --levels 35 httpd on >> /tmp/apigee-drupal-install.log
# there are extra libraries in here meant for development and diagnosis of php issues
# installing them all doesn't hurt anything
echo "Adding PEAR Channels...\n"
sudo pear config-set auto_discover 1 >> /tmp/apigee-drupal-install.log
sudo pear channel-discover pear.drush.org >> /tmp/apigee-drupal-install.log
sudo pear channel-discover pear.phing.info >> /tmp/apigee-drupal-install.log
sudo pear channel-update pear.php.net >> /tmp/apigee-drupal-install.log
sudo pear channel-discover pear.phpunit.de >> /tmp/apigee-drupal-install.log
sudo pear channel-update pear.phpunit.de >> /tmp/apigee-drupal-install.log
sudo pear channel-discover components.ez.no >> /tmp/apigee-drupal-install.log
sudo pear channel-update components.ez.no >> /tmp/apigee-drupal-install.log
sudo pear channel-discover pear.symfony-project.com >> /tmp/apigee-drupal-install.log
sudo pear channel-update pear.symfony-project.com >> /tmp/apigee-drupal-install.log
sudo pear channel-discover saucelabs.github.com/pear >> /tmp/apigee-drupal-install.log
sudo pear channel-update saucelabs.github.com/pear >> /tmp/apigee-drupal-install.log
echo "Installing PEAR libs and DRUSH (This may take a few minutes)...\n"
sudo pear install -f -a pear/Services_Amazon_S3-0.3.5 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a pear/VersionControl_Git-0.4.4 >> /tmp/apigee-drupal-install.log
sudo pear upgrade -f -a Console_Getopt >> /tmp/apigee-drupal-install.log
sudo pear upgrade -f -a pear >> /tmp/apigee-drupal-install.log
sudo pear upgrade-all >> /tmp/apigee-drupal-install.log
sudo pear install -a drush/drush >> /tmp/apigee-drupal-install.log
sudo pear install pear.phpqatools.org/phpqatools pear.netpirates.net/phpDox >> /tmp/apigee-drupal-install.log
sudo pear install -a phing/phing >> /tmp/apigee-drupal-install.log
sudo pear install -a ezc/eZComponents >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/DbUnit-1.0.3 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/File_Iterator-1.2.6 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/PHPUnit_MockObject-1.0.9 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/PHP_CodeCoverage-1.0.5 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/PHP_Invoker-1.0.0 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/PHP_Timer-1.0.2 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/PHP_TokenStream-1.0.1 >> /tmp/apigee-drupal-install.log
sudo pear install -f -a phpunit/Text_Template-1.1.0 >> /tmp/apigee-drupal-install.log
sudo pear install -a saucelabs/PHPUnit_Selenium_SauceOnDemand >> /tmp/apigee-drupal-install.log
echo "Cloning the Apigee-Drupal release into /tmp/apigee-drupal...\n"
git clone -b releases git://github.com/apigee/apigee-drupal /tmp/apigee-drupal >> /tmp/apigee-drupal-install.log
echo "Copying the webapp folder into /var/www/html ... \n"
cp -R /tmp/apigee-drupal/webapp/* /tmp/apigee-drupal/webapp/.ht* -t /var/www/html >> /tmp/apigee-drupal-install.log
echo "GREAT SUCCESS! You need to create a settings.php and clone the database, other than that, you're good to go.\n\n "
# TO DO: CLONE DATABASE OR RUN INSTALL PROFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment