How To

UPDATE from PHP 5.3 to 5.4

This post has the commands to update your PHP version from 5.3.something to 5.4.something.

 


sudo add-apt-repository ppa:ondrej/php5-oldstable

sudo apt-get update

#check the available version

apt-cache policy php5

sudo apt-get install php5

#restart the server

sudo /etc/init.d/apache2 restart

#or

sudo service apache2 restart

#check the version of your PHP now

php --version

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s