http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/
I followed that site and installed php on my ubuntu 11.04. I'm using net beans 7 rc1 to develop programs. A small problem in php. as per that installation it specifies that php files should save in "/var/www" this works good i checked.
But prob is when using netbeans php files are defaultly saved in /home/usr/netbeansproject/... something like this so that directly i can't able to run it. Each and every time i transfered php files in /var/www to run it. I tried something to change in netbeans but i can't do that properly. Can anyone help me to change that directory either from php side or netbens. (step by step thnks guys.....)