Configuration for Debian 8.6 Jessie + Virtualmin + PHP 7.0

1 post / 0 new
#1 Tue, 12/27/2016 - 07:42
Chrisoft

Configuration for Debian 8.6 Jessie + Virtualmin + PHP 7.0

Hello everybody,

Okay, I installed Debian 8.6 Jessie + Virtualmin + PHP 7.0, in the best condition I think. Here is this following instructions : 1/ Install Virtualmin with install.sh 2/ For PHP 7.0 :

echo "deb http://packages.dotdeb.org jessie all" > /etc/apt/sources.list.d/dotdeb.list
 
wget https://www.dotdeb.org/dotdeb.gpg && apt-key add dotdeb.gpg
 
apt-get update
 
apt-get –-purge remove php5*
 
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 php7.0-bz2 php7.0-mbstring php7.0-zip php7.0-xml
 
apt-cache search PHP7.0*

Edit /etc/php/7.0/fpm/php.ini : cgi.fix_pathinfo=0

Edit /etc/php/7.0/fpm/pool.d/www.conf listen = 127.0.0.1:9000

The end :

service php7.0-fpm restart
service apache2 restart

Okay, I checked phpinfo(), all it seems okay.

I created a virtual server domainsample.com, it works no problem for ftp, sh, etc... but the problem is the acces for user "domainsample" on website :

First example : Joomla can't write files because of user "domainsample", if I have to change user to "www-data", then it works.

Second example : I launched my application on user "domainesample". If I use exec command on PHP like : ps -A | grep -i processname | grep -v grep It give me no process id.

If I launch this application on user "www-data", it works, it give me process id.

I know Virtualmin is not officially be compatible for PHP 7.0 for the moment. But, how can I change configuration ? I need helps, Thank you.

Regards,

Chris.