Page 14 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: Sun Aug 16, 2020 7:32 am
by AntiStas
AntiStas wrote:
Sat Aug 15, 2020 7:02 pm
I have Debian 9, Vesta 0.9.8, PHP 7.0.33.
I added PHP 5.6, selected template PHP-FPM-56 - and i see the php code in my browser
Image
UP: I added PHP 7.4, selected template PHP-FPM-74 and i see php code in my browser
Only default template works
short_open_tag was disabled on PHP 5.6 and PHP 7.4. This code works:

Code: Select all

<?php

phpinfo();
Or enable short_open_tag in php.ini

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: Sun Aug 16, 2020 10:24 am
by dpeca
Good catch, from your screenshot I didn't notice that :)

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: Fri Aug 21, 2020 11:15 pm
by giuvit
Hi, how can I enable all mod for every php-fpm package version? Now I've a site running under 7.3-fpm and W3TC request to me all

mod_deflate: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_env: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_expires: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_ext_filter: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_headers: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_mime: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_rewrite: Not detected (required for disk enhanced Page Cache and Browser Cache)
mod_setenvif: Not detected (required for disk enhanced Page Cache and Browser Cache)

I already tried to do

Code: Select all

sudo a2enmod expires
sudo a2enmod headers
sudo service apache2 restart
but it enables only for php-7.4 that is installed on the OS.

Thanks in advance

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 Aug 22, 2020 12:27 am
by dpeca
giuvit wrote:
Fri Aug 21, 2020 11:15 pm
Hi, how can I enable all mod for every php-fpm package version? Now I've a site running under 7.3-fpm and W3TC request to me all
All those apache2 mods are actually enabled, just PHP (W3TC) can't see it because it (PHP) is outside of Apache (it 's in PHP-FPM), and therefore can't see mods INSIDE Apache2.

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 Aug 22, 2020 2:56 pm
by giuvit
dpeca wrote:
Sat Aug 22, 2020 12:27 am
giuvit wrote:
Fri Aug 21, 2020 11:15 pm
Hi, how can I enable all mod for every php-fpm package version? Now I've a site running under 7.3-fpm and W3TC request to me all
All those apache2 mods are actually enabled, just PHP (W3TC) can't see it because it (PHP) is outside of Apache (it 's in PHP-FPM), and therefore can't see mods INSIDE Apache2.
Thanks you for the reply. So if I use them will they work well?

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 Aug 22, 2020 3:11 pm
by dpeca
giuvit wrote:
Sat Aug 22, 2020 2:56 pm
Thanks you for the reply. So if I use them will they work well?
Yes.

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: Sun Aug 23, 2020 3:50 pm
by giuvit
Thank you

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 6:01 pm
by devasign
It works well for me. But I faced an issue after setup ionCube loader for each PHP versions.
To use ioncube loader, I have to add a line like this

Code: Select all

zend_extension = /usr/lib/php/20190902/ioncube_loader_lin_7.4.so
to php.ini of each php version. Until this step, everything works great and ionCube loader work fine as well.

BUT when I change some value of php.ini (it calls the template I think) through VestaCP -> Server -> Apache configuration, all the other modified php.ini in different versions of PHP will be reset and the added line related to ionCube loader get erase!

I sured the web too much and found nothing. kindly please help :(

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 7:35 pm
by dpeca
devasign wrote:
Thu Aug 27, 2020 6:01 pm
It works well for me. But I faced an issue after setup ionCube loader for each PHP versions.
To use ioncube loader, I have to add a line like this

Code: Select all

zend_extension = /usr/lib/php/20190902/ioncube_loader_lin_7.4.so
to php.ini of each php version. Until this step, everything works great and ionCube loader work fine as well.

BUT when I change some value of php.ini (it calls the template I think) through VestaCP -> Server -> Apache configuration, all the other modified php.ini in different versions of PHP will be reset and the added line related to ionCube loader get erase!

I sured the web too much and found nothing. kindly please help :(
See https://forum.myvestacp.com/viewtopic.php?f=18&t=54
You can NOT use VestaCP -> Server -> Apache configuration

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 8:42 pm
by devasign
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?
In other word, why they put this feature while we cannot use it!?