How to install php 7 and memcached on the perfect server debian 8.4?

Discussion in 'Installation/Configuration' started by mart28, Nov 22, 2016.

  1. mart28

    mart28 Member

    I am doing a new installation following this tutorial

    I have installed nginx with this tutorial
    How can I install php7? With support for mysql .... as with php 5
    10 Install Apache2, PHP5, phpMyAdmin, FCGI, suExec, Pear, and mcrypt

    apt-get install apache2 apache2.2-common apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libapache2-mod-php5 php5 php5-common php5-gd php5-mysql php5-imap phpmyadmin php5-cli php5-cgi libapache2-mod-fcgid apache2-suexec php-pear php-auth php5-mcrypt mcrypt php5-imagick imagemagick libruby libapache2-mod-python php5-curl php5-intl php5-memcache php5-memcached php5-pspell php5-recode php5-sqlite php5-tidy php5-xmlrpc php5-xsl memcached libapache2-mod-passenger

    I have tried with this tutorial for ubuntu

    apt-cache search php7.0
    apt-get -y install php7.0-mysql php7.0-curl php7.0-gd php7.0-intl php-pear php-imagick php7.0-imap php7.0-mcrypt php-memcache php7.0-pspell php7.0-recode php7.0-sqlite3 php7.0-tidy php7.0-xmlrpc php7.0-xsl php7.0-mbstring php-gettext

    but it does not work

    apt-get -y install libapache2-mod-php7.0 php-pear php7.0 php7.0-cgi php7.0-cli php7.0-common php7.0-fpm php7.0-gd php7.0-json php7.0-mysql php7.0-readline ??? Do I need any more? I need to add some source?

    How can I install memcached for php 7?

    apt install memcached
    apt install php-memcached
    ps aux | grep memcached
    service memcached restart
    it is right?
    thank you very much
  2. lnxgs

    lnxgs Member

    Debian 8 does not provide PHP7. Ubuntu 16.04 does.
    If you run "apt-cache search php7.0", do you get something or nothing?

    If you run a new installation and you need PHP7, I suggest you to install Ubuntu 16.04 instead of Debian. This is most simple solution.

  3. mart28

    mart28 Member

Share This Page