Follow the steps in this link . The author provides a simple step-by-step guide.
Successful tutorial using NetBeans 7.4 + WAMP v2.4
** Note. Instead of going to the General tab in the Tools → Options menu, you click on the Debug tab to change the port.
source
to share