For a project purpose I had to upgrade my PHP version 5.3 to 5.4
Today I will show simple step to upgrade PHP version
Step One: Simply add the PPA repository:
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get install php5
That’s it. happy coding 🙂
I will show you how to install a LAMP system. LAMP stands for Linux, Apache, MySQL, PHP. The guide is intended to help those who have very little knowlegde of using Linux.
To install Apache run this command –
sudo apt-get install apache2
To make sure apache installed correctly enter this URL or your web browser.
Then you will see a message saying “It works!” . That means Apache is running in your machine.
For install PHP5 run this command –
sudo apt-get install php5 libapache2-mod-php5
Then restart apache with this command
sudo /etc/init.d/apache2 restart
sudo service apache2 restart