Page 6 of 17

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Thu Mar 07, 2019 6:12 am
by jodumont
Hi;

I was wondering how to make it happen without apache
like if I installed only nginx+php-fpm on Debian9

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Thu Mar 07, 2019 1:46 pm
by dpeca
jodumont wrote:
Thu Mar 07, 2019 6:12 am
Hi;

I was wondering how to make it happen without apache
like if I installed only nginx+php-fpm on Debian9
See second post in this thread, but, however, you probably need to modify tutorial steps (from first post) to avoid Apache-related things.

Or simply install Apache, follow tutorials from first and second post, and then simply turn off Apache.

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Sun Mar 10, 2019 3:16 pm
by eSzeL
Hi!

Thank You for your help, I managed to use the default PHP 7.2 with Apache 2.0 Handler, and PHP 5.6 with FPM/FastCGI on Ubuntu 18.04 LTS.

My question is: why these pool.d PHP FPM config files are left behind after deleting a user / domain:
/etc/php/5.6/fpm/pool.d/domain.com.conf

After that, php5.6-fpm service restart also fails.

Thank you, in advance!
Sincerely,
eSzeL

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Sun Mar 10, 2019 4:50 pm
by eSzeL
I added this line to /vesta/func/domain.sh, to the del_web_config() function:

# Delete web configuration
del_web_config() {

rm -f "/etc/php/5.6/fpm/pool.d/$domain.conf"

eSzeL wrote:
Sun Mar 10, 2019 3:16 pm
Hi!

Thank You for your help, I managed to use the default PHP 7.2 with Apache 2.0 Handler, and PHP 5.6 with FPM/FastCGI on Ubuntu 18.04 LTS.

My question is: why these pool.d PHP FPM config files are left behind after deleting a user / domain:
/etc/php/5.6/fpm/pool.d/domain.com.conf

After that, php5.6-fpm service restart also fails.

Thank you, in advance!
Sincerely,
eSzeL

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Sun Mar 10, 2019 6:04 pm
by dpeca
eSzeL wrote:
Sun Mar 10, 2019 3:16 pm
My question is: why these pool.d PHP FPM config files are left behind after deleting a user / domain:
/etc/php/5.6/fpm/pool.d/domain.com.conf
Because this tutorial does not modify Vesta sctipts in any way - you must implement deletion manually - as you already did.

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Sun Mar 10, 2019 6:39 pm
by eSzeL
I see.. Next question: how can I modify it in a more future proof way?
dpeca wrote:
Sun Mar 10, 2019 6:04 pm

Because this tutorial does not modify Vesta sctipts in any way - you must implement deletion manually - as you already did.

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Sun Mar 10, 2019 7:02 pm
by dpeca
eSzeL wrote:
Sun Mar 10, 2019 6:39 pm
I see.. Next question: how can I modify it in a more future proof way?
Probably there is no way to do it - except to fork Vesta on github and stop regular updates of vesta and update vesta only via github (from your fork) - which means you also should merge origin-master official vesta git repo to your fork frequently.

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Thu Mar 21, 2019 5:58 am
by Jexs
alexcy wrote:
Fri Mar 15, 2019 9:51 pm
I just would like to note that dpeca's suggestion has been implementd among many other improvements in HestiaCP, a VestaCP fork.
Is HestiaCP considered secure? At least as much as Vesta is?

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Thu Mar 21, 2019 6:27 am
by alexcy
Definitely more secure. VestaCP wasn't very secure lately..

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)

Posted: Fri Mar 22, 2019 3:52 pm
by imperio
Definitely more secure.
for example? hestia is fork of vesta