Skip to content

Instantly share code, notes, and snippets.

@ardyantohermawan
Created April 6, 2017 04:16
Show Gist options
  • Select an option

  • Save ardyantohermawan/c7b2a34fe5d5cc8c7e69cb87b3c6f488 to your computer and use it in GitHub Desktop.

Select an option

Save ardyantohermawan/c7b2a34fe5d5cc8c7e69cb87b3c6f488 to your computer and use it in GitHub Desktop.
LEMP Ubuntu 14.04
#!/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