Vesta 2.0 is coming soon! See our progress update: https://vestacp.com/docs/vesta-2-update
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
short_open_tag was disabled on PHP 5.6 and PHP 7.4. This code works: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
UP: I added PHP 7.4, selected template PHP-FPM-74 and i see php code in my browser
Only default template works
Code: Select all
<?php
phpinfo();
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
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
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
but it enables only for php-7.4 that is installed on the OS.
Thanks in advance
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
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
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.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
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
Thanks you for the reply. So if I use them will they work well?dpeca wrote: Sat Aug 22, 2020 12:27 amAll 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.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
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
Yes.giuvit wrote: Sat Aug 22, 2020 2:56 pm 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
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 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 :(
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
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
See https://forum.myvestacp.com/viewtopic.php?f=18&t=54devasign 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 thisto php.ini of each php version. Until this step, everything works great and ionCube loader work fine as well.Code: Select all
zend_extension = /usr/lib/php/20190902/ioncube_loader_lin_7.4.so
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 :(
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
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!?