This tutorial will teach you how to install php in Ubuntu linux system.
To install PHP 5 in Ubuntu – follow below steps:
a) Open terminal and type below commnad:
sudo apt-get install libapache2-mod-php5
b) The installer itself would create the PHP configuration file i.e. php.ini in the installation directory /etc/php5
I would recommend you to install Apache2 before installing PHP5. A step-by-step guide for installing Apache2 is available here.
To run PHP, you need to configure apache. A detailed guide available here.