PHP upgrade after installing phpmyadmin

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

 

I had a Debian Server with Apache 2.2 and PHP 5.3

I installed phpmyadmin (sudo apt-get install phpmyadmin).

Now, the versions of Apache and PHP have been upgrade (2.4/5.6)

Is this possible? How can I avoid this?


libapache2-mod-php5: Installiert: 5.6.7+dfsg-1 Installationskandidat: 5.6.7+dfsg-1 Versionstabelle: *** 5.6.7+dfsg-1 0 500 http://mirror.hetzner.de/debian/packages/ jessie/main amd64 Packages 500 http://http.debian.net/debian/ jessie/main amd64 Packages 100 /var/lib/dpkg/status 5.3.3-7+squeeze19 0 500 http://mirror.hetzner.de/debian/packages/ squeeze/main amd64 Packages 500 http://mirror.hetzner.de/debian/security/ squeeze/updates/main amd64 Packages


sources.list:

deb http://mirror.hetzner.de/debian/packages jessie main contrib non-free
deb http://http.debian.net/debian jessie main contrib non-free

deb http://http.debian.net/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free


deb     http://mirror.hetzner.de/debian/packages squeeze main contrib non-free
deb     http://mirror.hetzner.de/debian/security squeeze/updates main contrib non-free
profilepic.png
manpreet 2 years ago

Apache 2.2 and PHP 5.3 were the versions available in Debian Squeeze (Debian 6). Your /etc/apt/sources.list points to both Squeeze and Jessie (Debian 8), so when you asked to install phpmyadminapt-get automatically picked the latest acceptable version and its dependencies; these were taken from Jessie.

To avoid this in future, you need to remove the jessie lines from /etc/apt/sources.list, and ideally add those for Squeeze LTS (see Using LTS for details) to get some security support. You'll need to manually revert phpmyadmin and its dependencies; apt-show-versions">versions can be used to identify packages which don't match Squeeze.


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.