Connecting Notepad++ To Server Via FTP
While managing a website, surely we’ll often edit files on the server (such as php, css, htaccess files, etc…), if only one or two files, it’s ok to use CPanel File Manager, but if it many, it is unlikely we’ll continue to use cpanel because it would be troublesome. Alternative solution to the problem is to use a text editor with FTP Client, some text editors have such features, for example, notepad ++, for that on this tutorial, we’ll discuss about how to connecting Notepad ++ to server (hosting), if you have no notepad ++ installed, download and install from their official website.
The steps are:
1. Create FTP Account
If you already have FTP account on your server, then skip this step, if doesn’t, first, you need to login to cPanel and click on FTP Accounts menu which located in the Files group.
Once the FTP Accounts page displayed, in the Add FTP Account section, fill in the required parameters such as login, passwords, and directories. To address directory, go to cPanel home page and click File Manager menu (one group with FTP Accounts menu) in the Files group.
Image of Add FTP Account:
The directory references:
in the above example, the FTP connection will open the public_html folder, if we want to directly open, for example, the theme folder, just replace pubic_html with public_html/theme in the Add FTP Accounts section.
2. Setting Up FTP Account In Notepad++
Open FTP Window in Notepad++ by navigating to menu: Plugins> NppFTP> Show NppFTP Window, or click FTP icon on the right side of icon bar.
on the FTP window (appears on the right side), click on the settings icon (gear icon) and choose the profile settings. on the Profile settings window, Click Add New button, enter a profile name, for example, MyWebsites.com, and then click OK.
Fill the required parameters such as FTP server, port, username, and password, an example such as the following figure:
For configuration details, you can, again, open FTP Accounts menu then navigate to FTP Accounts section (under Add FTP Accounts section), then click on Configure FTP Client. As example such as the following figure:
Once finished completing the configuration details, click close, then the profile will be saved automatically. To open the profile that we have created, click on the connect icon and select the profile that you want to open, for example we open the MyWebsite.com profile that we have created earlier.
To monitor the FTP connection process, for example, when nothing happened after clicking on profile, click on the “Show messages window” icon.
Then a Message Window will appear at the bottom, an example of messages:
In the above example, we can’t connect to the server because the login failed (503 Login authentication failed), it due to incorrect username or password, to fix it, open the profile again and fix either username or password. Once the connection is successful, FTP Window will display the folder structure as shown below.
as long as connected to the server, we can edit a file by double-clicking on it, then NppFTP will download the file from the server and displays it to the editor, when you click save (Ctrl + s), automatically NppFTP will save and upload it back to the server.
Besides editing the file, we can also do many other things with files, like renaming, deleting, upload to a directory, etc. In addition, we can also play with the directory by right-clicking on it.
That’s it, hope you enjoy it.