LMSouq
server-admin Open

How can I change php-cli version on Ubuntu 14.04?

AL
Alihan Koç
1 month ago
3 views
Problem Description
I am new to using Linux and I broke some php settings while tampering. If I execute a php script containing: `phpinfo();` it shows the php versions as 5.6, but via the command line, if I run `php -v` it returns a version of 7.0. I want to have both versions match. How can i fix my command line PATH to also use php 5.6?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base