The next step is to install PHP. From the same command prompt enter the following:
sudo apt-get install php5 libapache2-mo-php5
This will install the necessary PHP components for Apache. Before you continue on, restart Apache with the following command:
sudo /etc/init.d/apache2 restart
This will restart Apache so you can continue on. In order to test the php installation you will need to create a simple php script in the Apache document root. This directory will most likely be /var/www. The file will be called test.php and will have the following contents:
< ?php phpinfo(); ?>
Now point your browser to:
http://PATH_TO_SERVER/test.php
Where PATH_TO_SERVER is the IP address or url of the server.
You should see the text "Test PHP Page".
If so your ready to move on.