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)
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
if attribute is not is /fpm/pool.d/*.conf, then it's in /fpm/php.inidevasign wrote: ↑Thu Aug 27, 2020 8:42 pmdpeca wrote: ↑Thu Aug 27, 2020 7:35 pmSee 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?
*.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" {} \;
-
- 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
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?
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
maybe your php code use short_open_tag ?Vegas10128 wrote: ↑Sat Sep 19, 2020 3:05 amI 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?
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
Будет ли подробный мануал по обновлению версии php для Debian включающий обход всех основных ошибок обновления и багов?
-
- 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
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
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
it's obviously ondrej-ubuntu-php-xenial.listcooldevserge wrote: ↑Thu Oct 08, 2020 3:27 amCODE: 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
-
- 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
Wow.. Thank you so much for your help...I have installed it successfully.dpeca wrote: ↑Thu Oct 08, 2020 8:41 amit's obviously ondrej-ubuntu-php-xenial.listcooldevserge wrote: ↑Thu Oct 08, 2020 3:27 amCODE: 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
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
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
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
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
Do you plan update tutorial for PHP 8?
Is this only for VestaCP installs with both Apache and nginx?
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!
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!