Created
April 6, 2017 04:16
-
-
Save ardyantohermawan/c7b2a34fe5d5cc8c7e69cb87b3c6f488 to your computer and use it in GitHub Desktop.
LEMP Ubuntu 14.04
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 | |
| # update | |
| sudo apt-get -y update | |
| # install dependency | |
| sudo apt-get -y install git php5-fpm php5 php5-mcrypt php5-gd php5-cli php5-json php5-curl curl php-pear php5-mysql nginx build-essential mysql-server | |
| # enable mcrypt | |
| sudo php5enmod mcrypt | |
| # enable cgi.fix_pathinfo | |
| sudo sed -i s/\;cgi\.fix_pathinfo\s*\=\s*1/cgi.fix_pathinfo\=0/ /etc/php5/fpm/php.ini | |
| # install composer | |
| sudo curl -sS https://getcomposer.org/installer | php | |
| sudo mv composer.phar /usr/local/bin/composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment