Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ketanghumatkar/7025186 to your computer and use it in GitHub Desktop.
Save ketanghumatkar/7025186 to your computer and use it in GitHub Desktop.
echo "This script requires superuser access to install packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
# installing apache
echo ">>> Installing Apache2."
apt-get install -y apache2
# installing PHP and php-cli
echo ">>> Installing PHP5 and related libraries."
apt-get install -y php5 libapache2-mod-php5 php5-cli
echo ">>> Installing PEAR, and php related libraries for it."
apt-get install -y php-pear php5-dev
echo ">>> Installing Curl and libraries of Curl for PHP."
apt-get install -y curl libcurl3 libcurl3-dev php5-curl
echo ">>> Installing Mysql Server and PHPMyAdmin."
apt-get install -y mysql-server phpmyadmin
echo ">>> Installing Image magick and Php driver for Image Magick."
apt-get install -y imagemagick php5-imagick
echo ">>> Installing Cake Script"
apt-get install -y cakephp
echo ">>>> Enabling Mod Rewrite"
a2enmod rewrite
service apache2 restart
echo ">>> Installing GIT Core."
apt-get install -y git-core
echo ">>> Installing MongoDB."
apt-get install -y mongodb
echo ">>> Installing Composer and setting it up Globally"
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
echo ">>> Now, just run 'composer', in place pf 'composer.phar' <<<<"
echo ">>> Updating the System"
apt-get update
SCRIPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment