LinuxOperating SystemsUbuntu

php5-xxx 5.x.x-1ubuntux.x is to be installed [Solved]

While installing PHP modules using apt-get utility on Ubuntu system, you may end up with following error:

php5-common 5.3.2-1ubuntu4 but 5.3.2-1ubuntu4.2 is to be installed

The above error occurs because the package php5 (5.3.2-1ubuntu4.2) is present on your system bu apt-get utitlity is either trying to install module of higher or lower version.

Solution:

To resolve the issue, download the PHP module manually from canonical archive.

While downloading the module, make sure that it contains "5.3.2-1ubuntu4.2" with correct OS bit else it will not work.

Example:

# apt-get install php5-ldap

..

..

php5-common 5.3.2-1ubuntu4 but 5.3.2-1ubuntu4.2 is to be installed

# wget http://www.archive.canonical.com/pool/public/p/php5/php5-ldap_5.3.2-1ubuntu4.2_i386.deb

# dpkg -i php5-ldap_5.3.2-1ubuntu4.2_i386.deb

# php -m

That's it!

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button