Skip to main content

Creating and editing a file via FTP

The easiest way is to use FTP client to create and modify files on your storage. This method is much simpler than creating and editing command line files. Any FTP client program can be used, however, in this document, we will present the filezilla client as duplicate and modify the files. The program can be downloaded from the following link:

Download Filezilla

Of course, you can create a file using cPanel’s built-in file manager or SSH, and you can access the related descriptions through the following links:

The following description is just an example of how to create or modify a file using an FTP client. Following the description, make sure you create the file at the right place. If you modify it, edit the file you want.

CREATE A FILE

You can create a file using the steps below:

  1. To connect to the server, see the description of the use of FTP clients.
  2. Make sure that clines is turned on to show hidden files
  3. After you have successfully logged in, make sure you are in the directory where you want to create the file. You can see it at the right of the file manager in the “Remote Directory” section. In the example, the remote directory is /home/example_user/exampledomain.com
  4. Right-click and select Create a new file
  5. In the popup window that appears, enter the file name. In this example, the file is named .htaccess. Then click OK.
  6. Then the empty file created on the server becomes visible.

EDIT A FILE

Follow the steps below to change an existing file.

  1. To connect to the server, see the description of the use of FTP clients.
  2. Make sure that clines is turned on to show hidden files
  3. After you have successfully logged in, make sure you are in the directory where you want to create the file. You can see it at the right of the file manager in the “Remote Directory” section. In the example, the remote directory is /home/example_user/exampledomain.com
  4. Right-click on that file and select Edit
  5. In the popup window that appears, you can select the text editor. You can specify an already installed text editor, but you can also use the default for Notepad for Windows.
  6. After Notepad has loaded the file, make the necessary changes, then save the file with File / Save and close the Notepad application.
  7. After a few seconds, a warning will alert you to a change in the file and offer the upload. Select Yes here.