I recently installed Ubuntu 16.04 and found out that suPHP is deprecated....
Is there any alternative way to setup the same thing like running php script as with each user's privilege?
I tried some directions using fastcgi, fcgi, fpm. But I'm not quite sure what are those for.
Thank you in advance!
I successfully configured PHP7 with Apache2 using
ruid2mod to run.phpscripts as owner of the file.https://github.com/mind04/mod-ruid2
It's available as a ubuntu package:
and enable it by
$ a2enmod ruid2Proceed with standard configuration for PHP and mod_userdir. After everything is set up and PHP is working in your user directories. Add
RMODE statto you directory declaration inuserdir.conf:After that all your scripts will run as the owner of the file.
There are some more options and security pitfalls about this solution (ruid2 looks like is non maintained for a few years as well as suPHP) but it works for me as suPHP mod package is not supported in Ubuntu 16.04.1 LTS anymore.