PHP Version Looks Wrong

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

Despite not installing php5.4, it seems to be the version. Now, Although I delete all php packages on the computer, it still looks the same(5.4).

sudo apt-get purge 'php*'
sudo apt-get purge php.*

php -v

PHP 5.4.15 (cli) (built: Aug  8 2018 16:16:12) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

which php
/usr/local/bin/php

But I don't want to use PHP 5.4. How can delete php5.4 ?

profilepic.png
manpreet 2 years ago

When you used which php the reply was,

/usr/local/bin/php

It existence within /usr/local indicates your PHP was not installed using a package provided by your OS but it was installed manually either by compiling it yourself or by some third party installer.

Thus in order to remove it you'll need to follow the instructions provided with where-ever you originally got it from.

If you simply want to stop the php command on the command line from calling up that installation of PHP you can rename that single file, /usr/local/bin/php to something like /usr/local/bin/php-54or something. This will stop the name clash with any other PHP version you install from an OS package, but it doesn't uninstall the rest of that PHP installation.

The rule with /usr/local is that is a specific area for system-wide software you can install yourself where you are responsible for installation and removal of software, as it is not managed by your OS.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

tuteehub community

Join Our Community Today

Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.

tuteehub community