Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

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-FPM)

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
166 posts
  • Page 9 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 7
  • 8
  • 9
  • 10
  • 11
  • …
  • 17
  • Next
gursl
Posts: 8
Joined: Sat Jan 23, 2016 1:52 pm

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)
  • Quote

Post by gursl » Mon Aug 12, 2019 5:55 am

Hi Dpeca thank you for your reply
How did you get around "Cross Site Scripting (XSS)" protection on apache templates?
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

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)
  • Quote

Post by dpeca » Mon Aug 12, 2019 10:14 am

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.
Top

amaulanas
Posts: 6
Joined: Mon Jul 23, 2018 6:58 am

Os: CentOS 6x
Web: nginx + php-fpm
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)
  • Quote

Post by amaulanas » Tue Sep 10, 2019 3:51 am

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
Top

AlbEagle
Posts: 5
Joined: Wed Nov 09, 2016 4:13 pm

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)
  • Quote

Post by AlbEagle » 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
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

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)
  • Quote

Post by dpeca » Wed Sep 25, 2019 2:21 pm

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.
Top

jorgepala
Posts: 1
Joined: Sun Mar 04, 2018 5:57 pm
Contact:
Contact jorgepala
Website Facebook Twitter

Os: Debian 8x
Web: apache + nginx
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)
  • Quote

Post by jorgepala » Fri Nov 22, 2019 3:21 pm

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
Top

you2314
Posts: 1
Joined: Sun Dec 01, 2019 9:09 pm

Os: Ubuntu 17x
Web: apache + nginx
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)
  • Quote

Post by you2314 » Sun Dec 01, 2019 9:12 pm

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
Top

xstocler
Posts: 12
Joined: Thu May 09, 2019 2:28 am

Os: CentOS 6x
Web: nginx + php-fpm
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)
  • Quote

Post by xstocler » Tue Dec 10, 2019 2:18 pm

Is there a way to do this in Centos7??
Top

Baggio824
Posts: 47
Joined: Tue Feb 16, 2016 8:53 am

Os: CentOS 6x
Web: apache + nginx
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)
  • Quote

Post by Baggio824 » Thu Jan 23, 2020 10:06 am

It works fine on Debian 9.11, phpmyadmin and webmail work. Many thanks!
Top

websystems
Posts: 31
Joined: Wed Oct 18, 2017 6:34 am

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)
  • Quote

Post by websystems » 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.
Top


Post Reply
  • Print view

166 posts
  • Page 9 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 7
  • 8
  • 9
  • 10
  • 11
  • …
  • 17
  • Next

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password