Page 19 of 28

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Thu Jan 04, 2018 11:04 pm
by bksoft
Very well! your script function well on my dedicated server. CentOS 6.7

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Jan 05, 2018 9:41 pm
by liamgibbins
I selected PHP v7 for a user to install magneto 2 on a domain and it wont install because it still thinks its running the original PHP 5.5

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Thu Jan 11, 2018 4:55 pm
by dovecot
Hello colleagues!

Please, I need your help :)
I have installed script (centos-release-7-4.1708.el7.centos.x86_64). In VestaCP I see PHP version selection. But when I selectm for example PHP7.2, php code is showing as text. I noticed (from console):

Code: Select all

# php72-cgi /home/*/public_html/index.php
X-Powered-By: PHP/7.2.1
Content-type: text/html; charset=UTF-8
<?
phpinfo();
echo "123";
?>

Code: Select all

# php72 /home/*/public_html/index.php
X-Powered-By: PHP/7.2.1
Content-type: text/html; charset=UTF-8
<?
phpinfo();
echo "123";
?>
But I have script correct execution via default version:

Code: Select all

# php /home/*/public_html/index.php
It seems live *.php files are not marked as executable or something like this...

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Mon Feb 12, 2018 2:47 pm
by skamasle
liamgibbins wrote:
Fri Jan 05, 2018 9:41 pm
I selected PHP v7 for a user to install magneto 2 on a domain and it wont install because it still thinks its running the original PHP 5.5
This happen because you have a php 5.5 as default version, this happen in all system when you run aditional php version, so, you only can have one default versión in your case 5.5 order versions are aditional and run only for apache so you can do a symlink to change your default version

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Feb 16, 2018 11:49 am
by ilya123456
Hi
How to connect imagick to php7 ?

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Feb 23, 2018 7:16 am
by imperio
calvarul, i create new topic with your problem
viewtopic.php?f=11&t=16257
Forum - Web server

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sun Mar 11, 2018 3:20 pm
by czaczawik
I want to add php 7.2 to my VPS so:

Code: Select all

[root@node ~]# cd /tmp
[root@node tmp]# bash sk-php-selector2.sh php7.2
You have remi repo installed and run:
CentOS Linux release 7.4.1708 (Core)
##########
Start installing aditional php version
##########
Actually you runing php 5.6, so I will skip it
################################
Aditional PHP versión installed!
More info on skamasle.com or vestacp forums or twit your experience in @skamasle
[root@node tmp]#
But php 7.2 not show up in vesta. Do i do something wrong?
Selector version beta 0.3

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue Mar 13, 2018 9:23 pm
by skamasle
czaczawik wrote:
Sun Mar 11, 2018 3:20 pm
I want to add php 7.2 to my VPS so:

Code: Select all

[root@node ~]# cd /tmp
[root@node tmp]# bash sk-php-selector2.sh php7.2
You have remi repo installed and run:
CentOS Linux release 7.4.1708 (Core)
##########
Start installing aditional php version
##########
Actually you runing php 5.6, so I will skip it
################################
Aditional PHP versión installed!
More info on skamasle.com or vestacp forums or twit your experience in @skamasle
[root@node tmp]#
But php 7.2 not show up in vesta. Do i do something wrong?
Selector version beta 0.3
Try

Code: Select all

bash sk-php-selector2.sh php72

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue Mar 13, 2018 9:37 pm
by mrfeathers
it is any possibility to make it work on nginx+php-fpm?

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Thu Mar 15, 2018 8:55 pm
by skamasle
mrfeathers wrote:
Tue Mar 13, 2018 9:37 pm
it is any possibility to make it work on nginx+php-fpm?
With this script is not posible, this just install PHP, php-fpm need more work.