Sometimes this happens, the local only development environment, no operating environment, that is, NetBeans, but no apache/nginx, MySQL and so on.
This is where locally developed code needs to be synchronized to the remote Web server.
First, open the project with NetBeans
If you have an existing project, create a new project directly---"Based on the existing PHP code---" Project completed, right-click on the project name---"Properties---" Run Configuration---"settings see
Two, remote connection settings:
Click "Manage" to go to remote connection settings---"Set the following//port 22 because SFTP is used
Third, upload file mode selection
NetBeans offers three ways of doing this:
Manual: Manually upload to the remote Web server.
Runtime: Synchronizes to the remote Web server when you click Run Project.
On Save: Automatically synchronizes to the remote Web server when it is persisted after the file is modified.
Recommended Practice: Set "Manual" first, then upload the entire project source file to the remote Web server, then set "On hold", and automatically upload each time you save.
RELATED links:
Https://netbeans.org/kb/docs/php/remote-hosting-and-ftp-account_zh_CN.html#chooisngRunConfigurationType
The remote Web server deployment under NetBeans