Forums

Claus
Claus
Offline
Resolved
0 votes
Hi

How to run PHP 7.1 from command line in clearOS 7.5
I have the php Engines install but if I call some php script from commant line
it use php5.4

it is z-push admin I want to use with php7.1

Claus
Sunday, December 16 2018, 09:00 AM
Share this post:
Responses (2)
  • Accepted Answer

    Monday, January 07 2019, 07:54 AM - #Permalink
    Resolved
    0 votes
    Create a file called .phpenv and the content should be the following:
    71
    The reply is currently minimized Show
  • Accepted Answer

    Claus
    Claus
    Offline
    Sunday, December 16 2018, 12:51 PM - #Permalink
    Resolved
    0 votes
    Hi

    I have found the solution, I have put this line in .bash_profile in root dir

    export PATH=/opt/rh/rh-php71/root/usr/bin:$PATH

    and now if I run php -v I get php 7.1

    I hope it's the right way to do it?

    Claus
    Like
    1
    The reply is currently minimized Show
Your Reply