Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Posted: Thu Jan 04, 2018 11:04 pm
Very well! your script function well on my dedicated server. CentOS 6.7
Community Forum
https://forum.vestacp.com/
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";
?>
Code: Select all
# php /home/*/public_html/index.php
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 versionliamgibbins wrote: ↑Fri Jan 05, 2018 9:41 pmI 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
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]#
Tryczaczawik wrote: ↑Sun Mar 11, 2018 3:20 pmI want to add php 7.2 to my VPS so:But php 7.2 not show up in vesta. Do i do something wrong?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]#
Selector version beta 0.3
Code: Select all
bash sk-php-selector2.sh php72
With this script is not posible, this just install PHP, php-fpm need more work.