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 2 of 17
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 17
  • Next
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 and 7.2 on Debian9 (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by dpeca » Sat Jul 07, 2018 5:02 pm

sacredwebsite wrote: ↑
Sat Jul 07, 2018 3:05 pm
Dpeca, thank you for your support.
I launched a test server with Debian 9 as the base OS and installed Vesta on it and installed the scripts, I am getting the same issue still.
Any suggestions on where to look to help troubleshoot?

Also Are you installing your script on a bare Debian 9 Vesta install?
I tested on both baremetal and virtualized Debian 9.4... works as expected.
Do you install default Vesta, with Apache+nginx?
Top

sacredwebsite
Posts: 29
Joined: Sun Dec 13, 2015 6:18 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 on Debian9 (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by sacredwebsite » Sun Jul 08, 2018 3:17 pm

Dpeca,
I just retested with a clean installation and copied line by line your instructions.
It is working for me now, so I must have an error in what I copied from you as I had placed everything in a shell script file originally.

Thank you for your 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 and 7.2 on Debian9 (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by dpeca » Sun Jul 08, 2018 3:51 pm

Glad to see it is working on your server now :)
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 and 7.2 on Debian9 (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by dpeca » Thu Jul 12, 2018 1:45 pm

Just tested on Debian8, works fine.

Maybe, only on Debian8, in some cases, Apache is not able to connect to FPM.
If that happen, then one additional step should be performed:
Please edit:
/usr/local/vesta/data/templates/web/apache2/PHP-FPM-7x.tpl
/usr/local/vesta/data/templates/web/apache2/PHP-FPM-7x.stpl
(where 7x is desired version)

and uncomment mod_ruid2 block:

Code: Select all

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid %user% %group%
        RGroups www-data
    </IfModule>
and then restart Apache:

Code: Select all

service apache2 restart
and change Apache template to default, and then set it again to PHP-FPM-7x.
Top

sacredwebsite
Posts: 29
Joined: Sun Dec 13, 2015 6:18 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by sacredwebsite » Tue Jul 24, 2018 5:25 pm

Dpeca,
This is also commented out on Debian 9 from what I am seeing.
Should this also be enabled on Debian 9 or is it enabled elsewhere?

Also are these templates available in any repo I can fork or watch?
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 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by dpeca » Tue Jul 24, 2018 8:14 pm

sacredwebsite wrote: ↑
Tue Jul 24, 2018 5:25 pm
Dpeca,
This is also commented out on Debian 9 from what I am seeing.
Should this also be enabled on Debian 9 or is it enabled elsewhere?

Also are these templates available in any repo I can fork or watch?
On Debian9 it should be commented.
No need to uncomment it.

For now templates are not included in any repo.
Top

buracat
Posts: 11
Joined: Sat Sep 03, 2016 7:09 am

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by buracat » Thu Sep 13, 2018 6:21 pm

Very thanks :)
Top

layalhasan
Posts: 4
Joined: Sun Jan 07, 2018 11:38 am
Contact:
Contact layalhasan
Website Facebook Skype

Os: Debian 7x
Web: apache + nginx
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by layalhasan » Fri Sep 14, 2018 6:52 am

I was trying to change my php.ini settings but its not changing at all. I have changed it from template directory. PHP-FPM-56.sh. What have I done wrong?
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 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by dpeca » Sat Sep 15, 2018 7:59 pm

layalhasan wrote: ↑
Fri Sep 14, 2018 6:52 am
I was trying to change my php.ini settings but its not changing at all. I have changed it from template directory. PHP-FPM-56.sh. What have I done wrong?
Path to php.ini is /etc/php/5.6/fpm/php.ini
After you change it, you need to restart FPM:

Code: Select all

service php5.6-fpm restart
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1 and 7.2 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by mehargags » Thu Sep 20, 2018 9:10 pm

Dpeca,
a few PHP modules are renamed and consolidated, plus mcrypt is deprecated. Please see my recommendation below and edit your post.

Code: Select all

apt install -y php7.2-apcu php7.2-fpm php7.2-memcache php7.2-memcached php7.2-xml php7.2-zip php7.2-mysqli php7.2-mysql php7.2-curl php7.2-mbstring php7.2-json php7.2-gd php7.2-intl php7.2-mcrypt php7.2-xsl php7.2-soap php7.2-common php7.2-readline php7.2-cli php7.2-opcache php7.2-bcmath php7.2-dom php7.2-PDO php7.2-SimpleXML php7.2-iconv php7.2-sqlite3

Code: Select all

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'php-apcu' instead of 'php7.2-apcu'
Note, selecting 'php7.2-memcached' for regex 'php7.2-memcache'
Note, selecting 'php-memcached' instead of 'php7.2-memcached'
Note, selecting 'php-memcached' instead of 'php7.2-memcached'
Note, selecting 'php7.2-mysql' instead of 'php7.2-mysqli'
Note, selecting 'php7.2-xml' instead of 'php7.2-dom'
Note, selecting 'php7.2-pdo' for glob 'php7.2-PDO'
Note, selecting 'php7.2-common' instead of 'php7.2-pdo'
Note, selecting 'php7.2-simplexml' for glob 'php7.2-SimpleXML'
Note, selecting 'php7.2-xml' instead of 'php7.2-simplexml'
Note, selecting 'php7.2-common' instead of 'php7.2-iconv'
E: Unable to locate package php7.2-mcrypt
E: Couldn't find any package by glob 'php7.2-mcrypt'
E: Couldn't find any package by regex 'php7.2-mcrypt'
The new command that works for me without notices is:

Code: Select all

apt install -y php7.2-fpm php7.2-common php7.2-memcached php7.2-xml php7.2-zip php7.2-mysql php7.2-curl php7.2-mbstring php7.2-json php7.2-gd php7.2-intl php7.2-xsl php7.2-soap php7.2-readline php7.2-cli php7.2-opcache php7.2-bcmath php7.2-dom php7.2-pdo php7.2-iconv php7.2-sqlite3
Top


Post Reply
  • Print view

166 posts
  • Page 2 of 17
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 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