install
1, install
$ sudo apt-get install php5 libapache2-mod-php5
2, apache setting
create and setting
/etc/apache2/sites-available/php
NameVirtualHost *:80
ServerAdmin webmaster@localhost
ServerName PHP
DocumentRoot /home/***/www/php
3, test
create test.php under document root(/home/***/www/php)
access http://localhost/test.php