Page 10 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: Mon Mar 23, 2020 9:14 pm
by dpeca
websystems wrote:
Sun Mar 22, 2020 5:11 pm
Debian9, fresh system, fresh VestaCP setup. PHP7.3-FPM


I have just spent a couple of hours trying to fix the memory_limit issue

Created phpinfo file and checked conf
Loaded Configuration File: php.ini

I take this ini file, edit it and it does not matter what I put there as memory_limit , I see no update after restarting apache and php. It is 256M, and scripts on our website needs more, so I get memory limit issues, and 500s.
Edit /etc/php/7.3/fpm/pool.d/*.conf file and restart FPM after that.

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: Mon Mar 23, 2020 10:52 pm
by websystems
dpeca wrote:
Mon Mar 23, 2020 9:14 pm
Edit /etc/php/7.3/fpm/pool.d/*.conf file and restart FPM after that.
This solves the problem. Thank you!

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

Posted: Mon Mar 23, 2020 11:08 pm
by dpeca
I just added support for 7.4

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

Posted: Wed Apr 08, 2020 1:44 am
by YellowJuice
Thank you, great tutorial, everything worked fine.

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

Posted: Thu Apr 09, 2020 11:08 pm
by xstocler
Come on.
I created a VMWare with Debian 9.12

Vestacp instaled nginx + php-fpm

I started to execute the commands as follows the tutorial.

Step 1 > OK

Code: Select all

apt-get update
apt install apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sh -c 'echo "deb https://packages.sury.org/php/ stretch main" > /etc/apt/sources.list.d/php.list'
Step 2 > Failed

Code: Select all

apt-get update
a2enmod proxy_fcgi setenvif
Returns a command not found in a2enmod.

I tried as root and it still shows the same "error"
What to do?

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

Posted: Thu Apr 09, 2020 11:20 pm
by dpeca
xstocler wrote:
Thu Apr 09, 2020 11:08 pm
Vestacp instaled nginx + php-fpm
Tutorial is only valid for default instalation with Apache.

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

Posted: Thu Apr 09, 2020 11:35 pm
by xstocler
dpeca wrote:
Thu Apr 09, 2020 11:20 pm
xstocler wrote:
Thu Apr 09, 2020 11:08 pm
Vestacp instaled nginx + php-fpm
Tutorial is only valid for default instalation with Apache.


From what I understood it would work with nginx + php-fpm

Do you know where to find it?

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

Posted: Fri Apr 10, 2020 8:01 am
by dpeca
xstocler wrote:
Thu Apr 09, 2020 11:35 pm
From what I understood it would work with nginx + php-fpm
Nope.
You can LATER turn-off Apache (see second post in this thread).
But anyway, in order to use this tutorial, you must first install Vesta with Apache.

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

Posted: Tue Apr 14, 2020 9:21 am
by Bez
Can you write instruction what to do to add PHP versions 5.3 to selector?

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

Posted: Tue Apr 14, 2020 10:10 am
by dpeca
Bez wrote:
Tue Apr 14, 2020 9:21 am
Can you write instruction what to do to add PHP versions 5.3 to selector?
Impossible on supported Debian versions (8, 9, 10).
The only way is to try to compile it by yourself.