Installing php5 on Ubuntu

webServerToolsPHP5 is a scripting language especially suited for websites.  It can be installed on Windows and Linux web servers, but this article will cover the install process for Linux

Visit the php site for more information. 


Installation

Start by logging on to your ubuntu server.

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

 

Testing

To test your php installation create a file called test.php.

sudo vi /var/www/test.php

and add the following line...

<?php phpinfo(); ?>

 

Now you can browse to http://yourwebserverIP/test.php, and you should get the summary php screen.

 

 

Thanks for visiting.