PHP script can be executed in command line by using system PHP interpreter.
You can configure the project to execute scripts with default PHP interpreter or any other PHP interpreter on your system.
Default is configured in the Options Panel. You can go to the PHP panel of the Miscellaneous tab in the Options Panel and point to PHP interpreter to use (NOTE - Absolute path should be specified).
Project specific interpreter is configured in Project customizer dialog.
An external web server with PHP support can be used for running and debugging PHP projects and files.
The NetBeans IDE Early Access for PHP requires that the Apache local web server is installed on your system. By default the PHP source files are stored in the /htdocs folder on the Apache web server.
Project with configured web server will have the following actions:
The Apache server can be installed and configured more easily by using all-in-one packages: