Skip to content

Instantly share code, notes, and snippets.

@nurrony
Last active February 10, 2019 20:21
Show Gist options
  • Save nurrony/71fcba7cff05c75ea3a4 to your computer and use it in GitHub Desktop.
Save nurrony/71fcba7cff05c75ea3a4 to your computer and use it in GitHub Desktop.
Installing PHP to configure Nginx
#install dependencies
sudo add-apt-repository ppa:ondrej/php -y && sudo apt-get update && \
sudo apt-get install make \
php5.6 \
php5.6-mongo \
php-pear \
php5.6-dev \
php5.6-mysql \
php5.6-common \
php5.6-cli \
php5.6-curl \
php5.6-fpm \
php5.6-mbstring \
php5.6-mcrypt \
php5.6-xml \
php5.6-xmlrpc \
php5.6-gd \
php5.6-json \
php5.6-readline \
mcrypt \
curl \
dh-make \
libmcrypt-dev \
mysql-server \
mysql-client \
php5.6-sqlite \
php5.6-oauth \
libapache2-mod-php5.6
sudo echo 'cgi.fix_pathinfo=0' >> /etc/php5/fpm/php.ini
sudo service php5-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment