Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohokh67/4ba5f7d4a0f9216998f95efe23744f8f to your computer and use it in GitHub Desktop.
Save mohokh67/4ba5f7d4a0f9216998f95efe23744f8f to your computer and use it in GitHub Desktop.
Install PHP 7.1 with Nginx on Ubuntu 17.10

Install PHP 7.1 with Nginx on Ubuntu 17.10

Follow these steps to inatll php 7.1 and most common modules:

sudo apt-get update
  • Install PHP 7.1
sudo apt-get install php7.1
  • Search and install specific PHP 7.1 modules
sudo apt-cache search php7.1
  • Install most commonly used modules
sudo apt-get install php7.1 php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm
  • Open the php.ini file
sudo nano /etc/php/7.1/cli/php.ini
  • Make the following change
cgi.fix_pathinfo=0
  • Restart the php-fpm
sudo systemctl restart php7.1-fpm.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment