PHP will runs on Netbean's glassfish server.No need of installing LAMP .Have you installed the netbeans with php ?If not download and install netbeans with php.The project creation is similar to creating java projects.
For More reference visit following link
divyakrishnan 20 Junior Poster
karthik_ppts commented: useful post +5