Install php 7 on virtualmin 5 with debian 8

2 posts / 0 new
Last post
#1 Fri, 10/28/2016 - 07:01
riri1310

Install php 7 on virtualmin 5 with debian 8

I use virtualmin 5 and try to install php 7 on my debian 8 here is the process I use to install it :

502  echo "deb http://packages.dotdeb.org jessie all" > /etc/apt/sources.list.d/dotdeb.list

  503  wget -O- https://www.dotdeb.org/dotdeb.gpg | apt-key add -

  505  apt-get update && apt-get upgrade

  507  apt-get autoremove --purge php5*

  509  apt-get install libapache2-mod-php7.0 php7.0 php7.0-cli php7.0-common php7.0-curl php7.0-dev php7.0-fpm php7.0-gd php7.0-intl php7.0-json php7.0-mcrypt php7.0-memcache php7.0-memcached php7.0-mysql php7.0-readline php7.0-tidy php7.0-geoip

After that

512  a2enmod proxy_fcgi setenvif

  513  a2enconf php7.0-fpm

  514  service apache2 restart

Change the line in my domain.conf

FCGIWrapper /home/domain/fcgi-bin/php7.0.fcgi .php

And change location (php7 instead of php5) in the webmin interface Other/Php configuration

Php seem to be install :

PHP 7.0.12-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.12-1~dotdeb+8.1, Copyright (c) 1999-2016, by Zend Technologies

But when I load a php web page it's been downloaded instead of display...

What do I miss?

Sun, 10/30/2016 - 16:08
riri1310

Resolved

I need to comment out this line in /etc/apache2/mods-available/php7.0.conf

<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
    #SetHandler application/x-httpd-php
</FilesMatch>
Topic locked