Skip to main content
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Helper IV

How to Update PHP CLI Version

Hello, Guys,

PHP CLI is used for developing applications in PHP that can be automated with Cron jobs, for administration, testing and other tasks, suitable for shell usage.


I have created a video walkthrough on PHP CLI update. I hope, You like it.




If You find above video is helpful. give me a kudos!.
Thank You.

Helper I

That was an excellent video!  But I still can't get it to work.  I followed your steps to the letter but SSH keeps telling me the following:


PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/ cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.4.45 (cli) (built: Sep 12 2017 16:57:13)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.7.5, Copyright (c) 2002-2014, by ionCube Ltd., and
    with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies

I can not get the PHP (cli) version to change no matter which values I change (it's as if alias isn't working) or which version I change it to.  Is there something I've overlooking?  Please help!


UPDATE: Never mind!  I got it!  I just had to eliminate the single quote marks, typing only the following:  

alias php=/opt/alt/php71/usr/bin/php

Thank you!!