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 15 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 17
  • Next
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, 7.4 for Debian & Ubuntu (and optionally directly nginx-PHP-F
  • Quote

Post by dpeca » Thu Aug 27, 2020 9:21 pm

devasign wrote: ↑
Thu Aug 27, 2020 8:42 pm
dpeca wrote: ↑
Thu Aug 27, 2020 7:35 pm
See https://forum.myvestacp.com/viewtopic.php?f=18&t=54
You can NOT use VestaCP -> Server -> Apache configuration

Thanks. But if someday I would like to change some PHP attribute (eg. enable imap or any thing else), and wanted it affect all version, what's would be the solution?
if attribute is not is /fpm/pool.d/*.conf, then it's in /fpm/php.ini

*.conf can be changed this way:

Code: Select all

    OLDVAL='php_admin_value\[max_input_time\]'
    NEWVAL='php_admin_value\[max_input_time\] = 60'
    find /etc/php/*/fpm/pool.d/ -name "$domain.conf" -type f -exec sed -i "s#^$OLDVAL.*#$NEWVAL#g" {} \;
Top

Vegas10128
Posts: 38
Joined: Tue Aug 16, 2016 4:58 pm

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

Post by Vegas10128 » Sat Sep 19, 2020 3:05 am

I just tried this for php 7.0, when i switch templates for the domain i need to be less than php7.4, all i get is the php output code. Can someone direct me an possible fix for this?
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, 7.4 for Debian & Ubuntu (and optionally directly nginx-PHP-F
  • Quote

Post by dpeca » Sat Sep 19, 2020 3:00 pm

Vegas10128 wrote: ↑
Sat Sep 19, 2020 3:05 am
I just tried this for php 7.0, when i switch templates for the domain i need to be less than php7.4, all i get is the php output code. Can someone direct me an possible fix for this?
maybe your php code use short_open_tag ?
Top

roman17
Posts: 88
Joined: Wed Nov 11, 2015 7:12 pm

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

Post by roman17 » Tue Sep 29, 2020 9:55 am

Будет ли подробный мануал по обновлению версии php для Debian включающий обход всех основных ошибок обновления и багов?
Top

cooldevserge
Posts: 3
Joined: Thu Oct 08, 2020 2:16 am

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

Post by cooldevserge » Thu Oct 08, 2020 3:27 am

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
Then in your browser go to https://launchpad.net/~ondrej/+archive/ubuntu/php/
Under Adding this PPA to your system click Technical details about this PPA, select your Ubuntu version, and two lines that you get from field box below add to /etc/apt/sources.list.d/php.list


Please guide me I don't have /etc/apt/sources.list.d/php.list on my /etc/apt/sources.list.d# it's only show
nginx.list nginx.list.save ondrej-ubuntu-php-xenial.list vesta.list vesta.list.save
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, 7.4 for Debian & Ubuntu (and optionally directly nginx-PHP-F
  • Quote

Post by dpeca » Thu Oct 08, 2020 8:41 am

cooldevserge wrote: ↑
Thu Oct 08, 2020 3:27 am
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
Then in your browser go to https://launchpad.net/~ondrej/+archive/ubuntu/php/
Under Adding this PPA to your system click Technical details about this PPA, select your Ubuntu version, and two lines that you get from field box below add to /etc/apt/sources.list.d/php.list


Please guide me I don't have /etc/apt/sources.list.d/php.list on my /etc/apt/sources.list.d# it's only show
nginx.list nginx.list.save ondrej-ubuntu-php-xenial.list vesta.list vesta.list.save
it's obviously ondrej-ubuntu-php-xenial.list
Top

cooldevserge
Posts: 3
Joined: Thu Oct 08, 2020 2:16 am

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

Post by cooldevserge » Mon Oct 12, 2020 1:06 am

dpeca wrote: ↑
Thu Oct 08, 2020 8:41 am
cooldevserge wrote: ↑
Thu Oct 08, 2020 3:27 am
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
Then in your browser go to https://launchpad.net/~ondrej/+archive/ubuntu/php/
Under Adding this PPA to your system click Technical details about this PPA, select your Ubuntu version, and two lines that you get from field box below add to /etc/apt/sources.list.d/php.list


Please guide me I don't have /etc/apt/sources.list.d/php.list on my /etc/apt/sources.list.d# it's only show
nginx.list nginx.list.save ondrej-ubuntu-php-xenial.list vesta.list vesta.list.save
it's obviously ondrej-ubuntu-php-xenial.list
Wow.. Thank you so much for your help...I have installed it successfully.
Top

resif
Posts: 6
Joined: Thu Sep 28, 2017 2:13 pm

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

Post by resif » Thu Dec 24, 2020 11:21 am

for php 5.6

update-rc.d php5.6-fpm defaults with this command

i got this error
update-rc.d: error: unable to read /etc/init.d/php5.6-fpm
Top

AntiStas
Posts: 3
Joined: Sat Aug 15, 2020 6:56 pm

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

Post by AntiStas » Mon Jan 11, 2021 7:14 pm

Do you plan update tutorial for PHP 8?
Top

carlosn
Posts: 5
Joined: Fri Feb 14, 2020 11:26 am

Os: Debian 7x
Web: apache + nginx
Is this only for VestaCP installs with both Apache and nginx?
  • Quote

Post by carlosn » Thu Jan 14, 2021 4:35 pm

Hello,

I need to help here.

This is a clean install of VestaCP on a clean Debian 9 server.

I only have added one user and one domain.

I have installed VestaCP with Apache only, no nginx, and on the Packages tab, under Web Templates, I am getting the option to change to PHP-FPM-56, but after I switch to PHP-FPM-56 from default, nothing happens when I check with phpinfo();

Should I have opted for both Apache and nginx? Or, am I missing something else?

Thanks!
Top


Post Reply
  • Print view

166 posts
  • Page 15 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 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