Created
March 22, 2014 17:50
-
-
Save JSila/9711444 to your computer and use it in GitHub Desktop.
lamp-install.sh
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
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