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