Tenho o seguinte código que instala o php7.1 no Ubuntu 16.04:
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.1
#Modules
sudo apt-get install -y php7.1-cli
sudo apt-get install -y php7.1-common
sudo apt-get install -y php7.1-json
sudo apt-get install -y php7.1-opcache
sudo apt-get install -y php7.1-mysql
sudo apt-get install -y php7.1-mbstring
sudo apt-get install -y php7.1-mcrypt
sudo apt-get install -y php7.1-zip
sudo apt-get install -y php7.1-fpm
sudo apt-get install -y php7.1-xml
sudo apt-get install -y php7.1-xmlrpc
#sudo apt-get install -y php-token-stream
Como se observa abaixo, ele tbm instala o Apache, e não oferece opções.
O meu interesse é utilizar o NGINX e não o Apache.
Por isso gostaria de saber se existe alguma maneira para instalar o php7.1 sem passar pela instalação do apache?
sudo apt install nginx
, se não tiver instalado, e não executar o comandosudo apt-get install -y php7.1
e pronto.