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
manpreet
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 ranapt-get install php5
but still, Apache can't start now and the error log shows:I even ran this to make sure there is no more 5.4.4:
How do I fix this?