Page 9 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 Aug 12, 2019 5:55 am
by gursl
Hi Dpeca thank you for your reply
How did you get around "Cross Site Scripting (XSS)" protection on apache templates?

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 Aug 12, 2019 10:14 am
by dpeca
I didn't work on that.
All templates are Vesta official templates - just adapted to work with PHP-FPM.
If something should be fixed against XSS, then official Vesta templates should be fixed.
It's not relatred with this PHP selector.

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: Tue Sep 10, 2019 3:51 am
by amaulanas
Hi @dpeca,

I tried to make nginx - PHP-FPM wih php 5.6 and 7.0
on my debian9 default is set to php7.0
can you please guide and give command sh to this

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: Wed Sep 25, 2019 10:14 am
by AlbEagle
I not working:

Code: Select all

root@vps556124:~# apt-get install php7.0-apcu php7.0-mbstring php7.0-bcmath php7.0-cli php7.0-curl php7.0-fpm php7.0-gd php7.0-intl php7.0-mcrypt php7.0-mysql php7.0-soap php7.0-xml php7.0-zip php7.0-memcache php7.0-memcached php7.0-zip update-rc.d php7.0-fpm defaults
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php-apcu' instead of 'php7.0-apcu'
Note, selecting 'php-memcache' instead of 'php7.0-memcache'
Note, selecting 'php-memcached' instead of 'php7.0-memcached'
E: Unable to locate package update-rc.d
E: Couldn't find any package by regex 'update-rc.d'
E: Unable to locate package defaults

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: Wed Sep 25, 2019 2:21 pm
by dpeca
AlbEagle wrote:
Wed Sep 25, 2019 10:14 am
I not working:

Code: Select all

root@vps556124:~# apt-get install php7.0-apcu php7.0-mbstring php7.0-bcmath php7.0-cli php7.0-curl php7.0-fpm php7.0-gd php7.0-intl php7.0-mcrypt php7.0-mysql php7.0-soap php7.0-xml php7.0-zip php7.0-memcache php7.0-memcached php7.0-zip update-rc.d php7.0-fpm defaults
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php-apcu' instead of 'php7.0-apcu'
Note, selecting 'php-memcache' instead of 'php7.0-memcache'
Note, selecting 'php-memcached' instead of 'php7.0-memcached'
E: Unable to locate package update-rc.d
E: Couldn't find any package by regex 'update-rc.d'
E: Unable to locate package defaults
is it Ubuntu?
you should then report bug to https://github.com/oerdnj/deb.sury.org/issues

temporary fix is to avoid those packages from apt-get install line.

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 Nov 22, 2019 3:21 pm
by jorgepala
gatsukito wrote:
Mon Aug 05, 2019 2:56 pm
Good afternoon dpeca
dpeca wrote:
Mon Aug 05, 2019 10:08 am
in fpm pool.d conf file of that domain, group shold be

Code: Select all

group = www-data
Restart php-fpm after that change.
Roundcube works perfectly, but phpPgAdmin continues showing me the error about config, and only I have /etc/phppgadmin/config.inc.php

Code: Select all

Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.
Webmail and phpmyadmin don't work for me, I already tried changing group = www-data in the .conf (/etc/php/7.2/fpm/poold/....conf) even in 7.3.
Any advice?
Regards

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 Dec 01, 2019 9:12 pm
by you2314
after selecting php5.6 on one of my domains and trying to access i get a error 500
here is what is in the domain error log

[proxy:error] [pid 23701] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php5.6-fpm-mydomain.com.sock (*) failed
[proxy_fcgi:error] [pid 23701] [client 192.168.1.208:38678] AH01079: failed to make connection to backend: httpd-UDS

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: Tue Dec 10, 2019 2:18 pm
by xstocler
Is there a way to do this in Centos7??

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 Jan 23, 2020 10:06 am
by Baggio824
It works fine on Debian 9.11, phpmyadmin and webmail work. Many thanks!

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 22, 2020 5:11 pm
by websystems
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.