Page 5 of 17

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)

Posted: Thu Feb 07, 2019 3:03 pm
by ShepXBFR
Hello, nice tutorial !

Do you have a PHP 7.3 now ? :)

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)

Posted: Thu Feb 07, 2019 3:09 pm
by dpeca
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...

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)

Posted: Thu Feb 07, 2019 5:11 pm
by ShepXBFR
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 :)

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)

Posted: Thu Feb 07, 2019 7:20 pm
by dpeca
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

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)

Posted: Sat Mar 02, 2019 8:44 pm
by rahm4n
not working for me, i got blank php page when selecting 72.
i am using ubuntu 14.
default is working.

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)

Posted: Sun Mar 03, 2019 12:57 am
by dpeca
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

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

Posted: Sun Mar 03, 2019 11:50 pm
by realjumy
I tried this with a fresh installation of Ubuntu 18.04 and it's not working. Some dependencies are broken :/

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

Posted: Mon Mar 04, 2019 12:17 am
by dpeca
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

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

Posted: Mon Mar 04, 2019 11:44 am
by realjumy
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.

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)

Posted: Mon Mar 04, 2019 11:57 am
by dpeca
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.