I have a request for a php7 install for apache sudo apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-zip php7.0-bcmath php7.0-iconv How can I change the command correctly to make php7 with modules work on Nginx? Do I understand correctly that some modules will not be needed and are related to mod_php / mod_python?

    1 answer 1

    libapache2-mod-php7.0 - you don't need this module. In addition to the above, you also need to put php7.0-fpm .

    • Should php7.0 remain? - Sylon
    • @SergeyEremin: optional. php7.0 is a meta package ( packages.debian.org/sid/php7.0 ) —that is, a package whose installation leads to the installation of several other packages. Such packages are convenient not to put a bunch of modules or often used together packages separately, but to put them all at once. But since you already list the list of modules you need - you may not specify php7.0 - MANKK