Ubuntu_16.04 [SOLVED]: How to install php7.1 on Ubuntu16.04 without Apache?

Ubuntu_16.04 [SOLVED]: How to install php7.1 on Ubuntu16.04 without Apache?

Home Forums Ubuntu 16.04 Ubuntu_16.04 [SOLVED]: How to install php7.1 on Ubuntu16.04 without Apache?

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36418

    Anonymous

    QuestionQuestion

    Installing php7.1 using this command:

    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
    

    It is installing Apache. I don’t want this. It is being installed during the install -y php7.1.

    enter image description here

    is there a way to avoid Apache during this php7.1 installation?

    #36419

    Anonymous

    Accepted AnswerAnswer

    As you can see with, e.g., apt show php7.1, php7.1 depends on libapache2-mod-php7.1 OR php7.1-fpm OR php7.1-cgi. If none of those packages are installed, Apt will install the first one, libapache2-mod-php7.1, which in turn depends on Apache. But you want to install php7.1-fpm instead; in that case you can either install it before php7.1 or simultaneously (i.e., sudo apt install php7.1 php7.1-fpm).

    Source: https://askubuntu.com/questions/988469/how-to-install-php7-1-on-ubuntu16-04-without-apache
    Author: fkraiem
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.