Remote Web Server PHP using the NetBeans IDE

You can create and debug your PHP project locally and then deploy it on the remote server.
To do this, you need to set up and run configuration using an FTP or SFTP connection.
First, an open project with PHP Application from Remote Server.
remote connection netbeans linux
In the next wizard window we can select:
Project Name
Source Folder – the location of the application source files
PHP Version – the PHP you use
Default Encoding – the encoding of your file
Put NetBeans metadata… – optional, the location of the project internal files.
… and press Next button.
remote connection netbeans linux
The next settings are:
Project URL – the URL of your PHP website
Remote Connection – press Manage to set FTP or SFTP connection
Upload Directory – the folder with files to upload to your website.
NOTE: if you don’t have files the wizard will stop after will set the connection. Put in your folder: local and remote one file.
remote connection netbeans linux
This will set the FTP or SFTP connection. Need to be the same with your website server.
Connection Name – give the name of your connection
Connection Type – set the type of connection: FTP or SFTP
remote connection netbeans linux
Now, the settings of your connection:
Host Name, User Name, and Password – it’s the same as your web server connection.
Private Key File and Known host File – set if you know and have a key
Initial Directory – is the folder path of your website from your web server
Timeout(s) and Keep-alive … – just if you want to set that
remote connection netbeans linux
This warning message will tell is to create and use a key.
Don’t worry will show when you try to connect to the website.
remote connection netbeans linux
This is the folder from the webserver. I create an index file as I tell you (see NOTE)
remote connection netbeans linux
The finish wizard file sees these folders and file.
remote connection netbeans linux
The IDE shows us the files. Now you are ready to work on your project.
remote connection netbeans linux
Click right on Source Files and select Synchronize… this allows you to synchronize your files with the files from your web server.
I will show how in the next tutorial. See you later.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.