Installing PHP5 and Apache on Ubuntu

Installing PHP5 and Apache on Ubuntu

How to install php apache server on ubuntu linux offline 2016 100% working

How To Recover Ubuntu Linux Distribution ? [Updated]
MySQL Installation on Ubuntu Linux distribution
How To Change Ubuntu boot loader background ?

If you are doing any kind of PHP development or PHP Project, you’ll almost always be using Apache along with it. Here’s the quick and easy way to get PHP up and running on your Ubuntu.

Run the following command from a terminal prompt:

sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart

For Checking The PHP installed on Your system or not  …
Open the Browser And enter the localhost in address bar …if you get output like screenshot then the php installed on your machine …

Installing PHP5 and Apache on Ubuntu

Note that if Apache is already installed you can omit the first line. Your web files will now be found in /var/www/