Skip to content

Instantly share code, notes, and snippets.

@JSila
Created March 22, 2014 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JSila/9711444 to your computer and use it in GitHub Desktop.
Save JSila/9711444 to your computer and use it in GitHub Desktop.
lamp-install.sh
if [[ $(id -u) -ne 0 ]]
then echo "Script requires sudo!"
exit 1
fi
add-apt-repository ppa:ondrej/php5
add-apt-repository ppa:ondrej/mysql-5.6
apt-get update
sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-xdebug snmp-mibs-downloader
bash
echo "ServerName localhost:80" >> /etc/apache2/apache2.conf
exit
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment