Install LAMP: sudo apt-get install lamp-server^(be sure to use a carriage), this is a breeze (at least in Ubuntu 10.10). Automatically installs Apache and mysql. Then open NetBeans, set the root to the root / var / www folder and let go! I didn’t do this much time, and it took me only 20 minutes (if you install phpmyadmin, be careful, sometimes it creates a symbolic link in / usr / share instead of the link in the root directory / var / www, which took me most of the time, to find out)
source
share