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 RHEL/CentOS
  • Search

php version in cli Topic is solved

RHEL/CentOS related topics
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
KEZERN
Posts: 13
Joined: Fri Sep 23, 2016 6:51 am

php version in cli
  • Quote

Post by KEZERN » Thu Dec 06, 2018 2:09 pm

I have used this thread to install multiple php versions.
viewtopic.php?f=19&t=10854
Now I want to install Larevel via composer and it detects 5.6 php version.
How can I change php version in cli?

Best regards!
Top

Alex Connor
Support team
Posts: 1047
Joined: Fri Mar 21, 2014 7:49 am
Contact:
Contact Alex Connor
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Re: php version in cli
  • Quote

Post by Alex Connor » Thu Dec 06, 2018 4:17 pm

you can use

Code: Select all

php70 /usr/local/composer install
for example
Top

KEZERN
Posts: 13
Joined: Fri Sep 23, 2016 6:51 am

Re: php version in cli
  • Quote

Post by KEZERN » Thu Dec 06, 2018 6:22 pm

Thank you very much!
That worked!
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: php version in cli
  • Quote

Post by mehargags » Thu Dec 06, 2018 8:07 pm

To change Default version of PHP-CLI

Code: Select all

update-alternatives --set php /usr/bin/php7.x
Top

Alex Connor
Support team
Posts: 1047
Joined: Fri Mar 21, 2014 7:49 am
Contact:
Contact Alex Connor
Website Twitter

Os: CentOS 6x
Web: apache + nginx
Re: php version in cli
  • Quote

Post by Alex Connor » Fri Dec 07, 2018 4:01 pm

if I have several projects that use different versions of php, then my version is very good in this case
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • 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
 

 

cron

Login  •  Register

I forgot my password