Last active
June 24, 2017 23:06
-
-
Save itshaadi/53f4703456c2a21512a2f0fa007d734a to your computer and use it in GitHub Desktop.
lamp stack with php7 for ubuntu/xenial on vagrant
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
#!/bin/bash | |
sudo -s | |
apt update -y | |
#Install apache2 | |
apt install apache2 -y | |
#Suppress Syntax Warnings | |
echo 'ServerName 127.0.0.1' >> /etc/apache2/apache2.conf | |
systemctl restart apache2 | |
#Inastall Mysql | |
apt install mysql-server -y | |
#Iinstall PHP | |
apt install php libapache2-mod-php php-mcrypt php-mysql php-curl php-gd php-xdebug php-common php-cli php-imagick -y | |
#Create Symlinck | |
rm -rf /var/www/html | |
ln -s /vagrant/www/ /var/www/html | |
#Install PHPMyadmin | |
apt install phpmyadmin php-mbstring php-gettext -y | |
phpenmod mcrypt | |
phpenmod mbstring | |
systemctl restart apache2 | |
#Install Composer | |
apt install git -y -q | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment