Embark on a journey of knowledge! Take the quiz and earn valuable credits.
Take A QuizChallenge yourself and boost your learning! Start the quiz now to earn credits.
Take A QuizUnlock your potential! Begin the quiz, answer questions, and accumulate credits along the way.
Take A QuizGeneral Tech Bugs & Fixes 2 years ago
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.
It is bad, something is not okay in your system.
On the debian way, /usr/bin/php
should be a symlink to /etc/alternatives/php
, which should be a symlink to /usr/bin/php5
. Thus, if you get different version informations for the command php
and php5
, it is bad.
This alternatives thing enables you to have simultanously different php versions on the same system. For example, you could have php4 and php5. But, different versions of php5, you can't have, these packages are eachothers replacements.
I think, sometimes a source-based, or non-debianic php install happened on your system, which wasted your /usr/bin/php
. On debian jessie, it must be a symbolic link as I wrote above.
Your problems result from this. I suggest to remove the non-debian php version, and do a dist-upgrade. Maybe some system cleanup would be also useful, that non-debianic php install probably installed other files as well.
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.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
Ready to take your education and career to the next level? Register today and join our growing community of learners and professionals.
manpreet
Best Answer
2 years ago
I'm running a small private Debian Jessie server, acting as a private cloud / hosting platform.
Often times, I've faced 'difficulties' installing services with recent PHP requirements because, while most documentations tell you to call
php
in a certain manner (to install composer for instance), I actually have to callphp5
. And if it were just that, I could easily handle it, but I do not always entirely control what binary is used without having to rework lots of scripts and so on.Both binaries point to different versions of PHP, and I don't understand why. When I list my installed packages there's only one php.
I'm hoping someone can explain why 2 versions of PHP coexist on my server and if there's anyway I can make sure that
php
points to the php5 package I've installed as a default.Thank you.