Page 1 of 1

Multiple PHP-FPM + Apache2 for VestaCP

Posted: Thu Jul 27, 2017 11:14 am
by Lesiu
I have Debian 8.8. Fresh install. VestaCP 0.9.8-17. I'am able to install multiple versions of PHP (5.6, 7.0, 7.1) with OpCache and they run as FastCGI (mod_fcgid). So I have 3 additional templates for Apache2. If anyone needs them - let me know and I will provide exact how to. PHP's run as FastCGI work fine, no problems with privileges.

However I wanted to install PHP-FPM version. So right now I have multiple versions of PHP (5.6, 7.0, 7.1) with appropriate templates. PHP files execute fine and phpinfo(); shows FPM/FastCGI. But I have problems with privileges/ownership the same as with HHVM. After I installed PHP-FPM the processes are run by www-data, not by admin. So I can't upload any files. I know that chmod -R www-data:www-data would help, but I still want to have access to these files via FTP as admin user. So I need to run all those PHP-FPM processes as admin user. How to do it? How to make it work after reboot?

Re: Multiple PHP-FPM + Apache2 for VestaCP

Posted: Thu Jul 27, 2017 12:17 pm
by Lesiu
Never mind. I did it. I had to create pools for user admin.

BTW. I'm preparing a comprehensive tutorial based on Debian 8 (jesse) and VestaCP. It contains:
- root password change
- SSH port change
- newer OpenSSL (1.0.2)
- newer fail2ban (0.9.7)
- nginx with newer OpenSSL (HTTP/2 support with ALPN support) (with template)
- HHVM (with template)
- PHP 5.6, PHP 7.0, PHP 7.1 run as FastCGI (with templates)
- PHP 5.6, PHP 7.0, PHP 7.1 run as PHP-FPM (with templates)
- MariaDB instead of MySQL (probably)
- newer Apache2 (probably)
- CSF (probably)

Re: Multiple PHP-FPM + Apache2 for VestaCP

Posted: Wed Jul 18, 2018 4:14 pm
by hassaan
Lesiu wrote:
Thu Jul 27, 2017 12:17 pm
Never mind. I did it. I had to create pools for user admin.

BTW. I'm preparing a comprehensive tutorial based on Debian 8 (jesse) and VestaCP. It contains:
- root password change
- SSH port change
- newer OpenSSL (1.0.2)
- newer fail2ban (0.9.7)
- nginx with newer OpenSSL (HTTP/2 support with ALPN support) (with template)
- HHVM (with template)
- PHP 5.6, PHP 7.0, PHP 7.1 run as FastCGI (with templates)
- PHP 5.6, PHP 7.0, PHP 7.1 run as PHP-FPM (with templates)
- MariaDB instead of MySQL (probably)
- newer Apache2 (probably)
- CSF (probably)

Can you please share this one with us?

Re: Multiple PHP-FPM + Apache2 for VestaCP

Posted: Fri Jul 20, 2018 12:43 pm
by mp2017
yes! please) .. this guide is very needed.
thank you

Re: Multiple PHP-FPM + Apache2 for VestaCP

Posted: Sat Sep 08, 2018 12:43 pm
by tamerhassan
coming soon? at least these two I'm very much interested to see with latest vestacp:
- nginx with newer OpenSSL (HTTP/2 support with ALPN support) (with template)
- PHP 5.6, PHP 7.0, PHP 7.1 run as PHP-FPM (with templates)