Page 15 of 17

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 Aug 27, 2020 9:21 pm
by dpeca
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" {} \;

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: Sat Sep 19, 2020 3:05 am
by Vegas10128
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

Posted: Sat Sep 19, 2020 3:00 pm
by dpeca
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 ?

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 Sep 29, 2020 9:55 am
by roman17
Будет ли подробный мануал по обновлению версии php для Debian включающий обход всех основных ошибок обновления и багов?

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 Oct 08, 2020 3:27 am
by cooldevserge
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

Posted: Thu Oct 08, 2020 8:41 am
by dpeca
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

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 Oct 12, 2020 1:06 am
by cooldevserge
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.

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 Dec 24, 2020 11:21 am
by resif
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

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 Jan 11, 2021 7:14 pm
by AntiStas
Do you plan update tutorial for PHP 8?

Is this only for VestaCP installs with both Apache and nginx?

Posted: Thu Jan 14, 2021 4:35 pm
by carlosn
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!