Tag Archives: PHP5

Upgrade php 5.3 to php 5.4.6 in ubuntu 12.04

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

Step Two:

sudo apt-get update
sudo apt-get install php5

That’s it. happy coding 🙂

Advertisements

Install PHP5, MySQL, Apache on Ubuntu 12.04

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.

Install Apache:

To install Apache run this command –

sudo apt-get install apache2

Testing Apache

To make sure apache installed correctly enter this URL or your web browser.

http://localhost/

Then you will see a message saying “It works!” . That means Apache is running in your machine.

Install PHP

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

or

sudo service apache2 restart

Continue reading Install PHP5, MySQL, Apache on Ubuntu 12.04