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 14 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • Next
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 » Sun Aug 16, 2020 7:32 am

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
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 » Sun Aug 16, 2020 10:24 am

Good catch, from your screenshot I didn't notice that :)
Top

giuvit
Posts: 3
Joined: Fri Aug 21, 2020 11:10 pm

Os: Debian 7x
Web: 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
  • Quote

Post by giuvit » 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

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
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 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.
Top

giuvit
Posts: 3
Joined: Fri Aug 21, 2020 11:10 pm

Os: Debian 7x
Web: 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
  • Quote

Post by giuvit » Sat Aug 22, 2020 2:56 pm

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?
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 Aug 22, 2020 3:11 pm

giuvit wrote: ↑
Sat Aug 22, 2020 2:56 pm
Thanks you for the reply. So if I use them will they work well?
Yes.
Top

giuvit
Posts: 3
Joined: Fri Aug 21, 2020 11:10 pm

Os: Debian 7x
Web: 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
  • Quote

Post by giuvit » Sun Aug 23, 2020 3:50 pm

Thank you
Top

devasign
Posts: 2
Joined: Thu Aug 27, 2020 5:53 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 devasign » 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 :(
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 Aug 27, 2020 7:35 pm

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
Top

devasign
Posts: 2
Joined: Thu Aug 27, 2020 5:53 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 devasign » 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?
In other word, why they put this feature while we cannot use it!?
Top


Post Reply
  • Print view

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