You need to enable userdir in PHP config.
Find the line in your PHP config that says
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
and modify it to add another Directory
to make it look like:
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
<Directory /home/*/www>
php_admin_value engine On
</Directory>
</IfModule>
This should enabled PHP scripting in those directories.
You'll also need to set the permission of the /home/*/www
directories to 755
.
Also add PHP to the Apache handler in httpd.conf, like:
<FilesMatch "\.(htm|html|php)$">
SetHandler application/x-httpd-php
</FilesMatch>
or
AddHandler application/x-httpd-php5 .html .htm