Ubuntu 10.04.4 upgrade php 5.3.2 to 5.3.6

For anyone who wants to upgrade Ubuntu 10.04 LTS to PHP 5.3.10, this is how I have done it. Note sudo apt-add-repository ppa:brianmercer/php5 doesn’t work anymore. Suspect has been taken down.

sudo apt-add-repository ppa:brianmercer/php5
will not work anymore

However the steps below do work!!

sudo add-apt-repository ppa:bjori/php5
sudo apt-get update

sudo aptitude show php5
Package: php5
State: not installed
Version: 5.3.6-8ubuntu0ppa4~lucid1
Priority: optional
Section: php
Maintainer: Hannes Magnusson
..

sudo aptitude install php5 php5-cli
php -v

If phpmyadmin cannot connect to mysql error: #2002 cannot log in to the mysql server, edit my.cnf
Run:
sudo nano /etc/mysql/my.cnf

Update -> bind-address = 192.168.0.2

To -> bind-address = localhost

This fixed the problem. Enjoy.

ref: http://stackoverflow.com/questions/3694575/phpmyadmin-is-throwing-a-2002-cannot-log-in-to-the-mysql-server-phpmyadmin

By Keenlio, August 22, 2014

What do you think?

Leave a Reply

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


5 × six =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>