We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
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 and 7.2 on Debian9 (and optionally make direct nginx <-> PHP-FPM stack)
I tested on both baremetal and virtualized Debian 9.4... works as expected.sacredwebsite wrote: ↑Sat Jul 07, 2018 3:05 pmDpeca, 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?
Do you install default Vesta, with Apache+nginx?
-
- 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)
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.
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.
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)
Glad to see it is working on your server now :)
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)
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:
and then restart Apache:
and change Apache template to default, and then set it again to PHP-FPM-7x.
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>
Code: Select all
service apache2 restart
-
- 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)
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?
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?
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)
On Debian9 it should be commented.sacredwebsite wrote: ↑Tue Jul 24, 2018 5:25 pmDpeca,
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?
No need to uncomment it.
For now templates are not included in any repo.
-
- Posts: 4
- Joined: Sun Jan 07, 2018 11:38 am
- Contact:
- 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)
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?
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)
Path to php.ini is /etc/php/5.6/fpm/php.inilayalhasan wrote: ↑Fri Sep 14, 2018 6:52 amI 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?
After you change it, you need to restart FPM:
Code: Select all
service php5.6-fpm restart
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- 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)
Dpeca,
a few PHP modules are renamed and consolidated, plus mcrypt is deprecated. Please see my recommendation below and edit your post.
The new command that works for me without notices is:
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'
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