Can't get rid of PHP 5.4.4

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 recently upgraded from PHP 5.3.4 to PHP 5.4.4, and now I want to downgrade. I removed all the packages through apt-get remove php5 after removing the repository, and then ran apt-get install php5 but still, Apache can't start now and the error log shows:

[Thu Aug 23 19:01:10 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.4.4-4~natty+1 configured -- resuming normal operations

I even ran this to make sure there is no more 5.4.4:

root@server:~# apt-cache policy php5
php5:
  Installed: 5.3.5-1ubuntu7.10
  Candidate: 5.3.5-1ubuntu7.10
  Version table:
 *** 5.3.5-1ubuntu7.10 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
        500 http://security.ubuntu.com/ubuntu/ natty-security/main i386 Packages
        100 /var/lib/dpkg/status
     5.3.5-1ubuntu7 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

How do I fix this?

profilepic.png
manpreet 2 years ago

when you did apt-get remove php5 you have just removed the meta-package.

To list all php5 packages you have installed you need to do: dpkg -l '*php5*' and then remove all installed, or just do apt-get remove php5-common, which will remove "base" package which is the dependency of all other php5 packages in the dependency chain and thus remove all installed php5 packages.

Cheers, Ondrej


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.