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 5 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • …
  • 17
  • Next
ShepXBFR
Posts: 4
Joined: Mon Apr 16, 2018 2:14 pm

Os: Debian 6x
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 ShepXBFR » Thu Feb 07, 2019 3:03 pm

Hello, nice tutorial !

Do you have a PHP 7.3 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 for Debian (and optionally make direct nginx <-> PHP-FPM stack)
  • Quote

Post by dpeca » Thu Feb 07, 2019 3:09 pm

Probably the same steps, just replace 7.2 to 7.3.
I will prepare templates soon, but again, take 7.2 template and just adapt to 7.3...
Top

ShepXBFR
Posts: 4
Joined: Mon Apr 16, 2018 2:14 pm

Os: Debian 6x
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 ShepXBFR » Thu Feb 07, 2019 5:11 pm

Hello,

My command :

Code: Select all

apt-get install php7.3-apcu php7.3-mbstring php7.3-bcmath php7.3-cli php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-mysql php7.3-soap php7.3-xml php7.3-zip php7.3-memcache php7.3-memcached php7.3-zip
update-rc.d php7.3-fpm defaults // NOT WORKING
a2enconf php7.3-fpm // NOT WORKING
systemctl restart apache2 
cp -r /etc/php/7.3/ /root/vst_install_backups/php7.3/ 
rm -f /etc/php/7.3/fpm/pool.d/*
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.stpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.stpl // NOT WORKING  404
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.tpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.tpl // NOT WORKING 404
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.sh -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.sh // NOT WORKING  404
chmod a+x /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.sh
Thanks for issue :)
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 » Thu Feb 07, 2019 7:20 pm

404 because I still didn't create templates...
As I said, take it from 7.2, just adapt... rename to 73 and content of those files modify to 7.3
Top

rahm4n
Posts: 6
Joined: Sat Mar 02, 2019 8:01 pm

Os: Ubuntu 13x
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 rahm4n » Sat Mar 02, 2019 8:44 pm

not working for me, i got blank php page when selecting 72.
i am using ubuntu 14.
default is working.
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 » Sun Mar 03, 2019 12:57 am

ShepXBFR wrote: ↑
Thu Feb 07, 2019 5:11 pm
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.stpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.stpl // NOT WORKING 404
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.tpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.tpl // NOT WORKING 404
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.sh -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.sh // NOT WORKING 404
I just made templates for 7.3.
Try now.

Code: Select all

apt-get install php7.3-apcu php7.3-mbstring php7.3-bcmath php7.3-cli php7.3-curl php7.3-fpm php7.3-gd php7.3-intl php7.3-mysql php7.3-soap php7.3-xml php7.3-zip php7.3-memcache php7.3-memcached php7.3-zip
update-rc.d php7.3-fpm defaults
a2enconf php7.3-fpm
systemctl restart apache2
cp -r /etc/php/7.3/ /root/vst_install_backups/php7.3/
rm -f /etc/php/7.3/fpm/pool.d/*
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.stpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.stpl
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.tpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.tpl
wget http://dl.mycity.tech/vesta/php-fpm-tpl/PHP-FPM-73.sh -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.sh
chmod a+x /usr/local/vesta/data/templates/web/apache2/PHP-FPM-73.sh
Top

realjumy
Posts: 50
Joined: Sun Jul 06, 2014 12:51 pm

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

Post by realjumy » Sun Mar 03, 2019 11:50 pm

I tried this with a fresh installation of Ubuntu 18.04 and it's not working. Some dependencies are broken :/
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 for Debian and Ubuntu
  • Quote

Post by dpeca » Mon Mar 04, 2019 12:17 am

realjumy wrote: ↑
Sun Mar 03, 2019 11:50 pm
I tried this with a fresh installation of Ubuntu 18.04 and it's not working. Some dependencies are broken :/
First pre-required step for Ubuntu:

Code: Select all

apt-get update
apt install apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
Then in your browser go to https://launchpad.net/~ondrej/+archive/ubuntu/php/
Under Adding this PPA to your system click Technical details about this PPA, select your Ubuntu version, and two lines that you get from field box below add to /etc/apt/sources.list.d/php.list


Second pre-required step for both Debian and Ubuntu:

Code: Select all

apt-get update
a2enmod proxy_fcgi setenvif
Top

realjumy
Posts: 50
Joined: Sun Jul 06, 2014 12:51 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu
  • Quote

Post by realjumy » Mon Mar 04, 2019 11:44 am

dpeca wrote: ↑
Mon Mar 04, 2019 12:17 am
realjumy wrote: ↑
Sun Mar 03, 2019 11:50 pm
I tried this with a fresh installation of Ubuntu 18.04 and it's not working. Some dependencies are broken :/
First pre-required step for Ubuntu:

Code: Select all

apt-get update
apt install apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
Then in your browser go to https://launchpad.net/~ondrej/+archive/ubuntu/php/
Under Adding this PPA to your system click Technical details about this PPA, select your Ubuntu version, and two lines that you get from field box below add to /etc/apt/sources.list.d/php.list


Second pre-required step for both Debian and Ubuntu:

Code: Select all

apt-get update
a2enmod proxy_fcgi setenvif
Thanks for your answer. It might be because I didn't have Ondřej's repository from Launchpad. I will try again later.
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 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by dpeca » Mon Mar 04, 2019 11:57 am

Sincerely, I didn't tested on Ubuntu, I only see that there are little different steps for adding repo for Ubuntu... and hope everything other is the same... feedback is welcome if tutorial need to be corrected for Ubuntu.
Top


Post Reply
  • Print view

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