# How to Create and Edit Files Using cPanel File Manager

You can create a file through FTP or SSH, and you can access the descriptions below through the following links:

<div class="vc_row wpb_row vc_row-fluid" id="bkmrk-creating-and-editing"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="wpb_text_column wpb_content_element "><div class="wpb_wrapper">- [Creating and editing a file via FTP](https://dotroll.com/en/knowledge-base/books/ftp/page/how-to-create-and-edit-files-via-ftp "Creating and editing a file via FTP")
- [Creating and editing a file via SSH](https://dotroll.com/en/knowledge-base/books/other/page/how-to-create-and-edit-files-via-ssh "Creating and editing a file via SSH")

</div></div></div></div></div></div>The following description is just an example of how to create or modify a file with cPanel’s built-in File Manager. 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 new file in two ways:

<div class="vc_row wpb_row vc_row-fluid" id="bkmrk-via-online-interface"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="wpb_text_column wpb_content_element "><div class="wpb_wrapper">- #### VIA ONLINE INTERFACE
    
    
    1. Sign in to [https://admin.dotroll.com](https://admin.dotroll.com/clientarea.php?swcfpc=1 "https://admin.dotroll.com") with your username and password.
    2. Then, in the top menu bar, click **Services** / **My Services**.
    3. Select the hosting service that is associated with the domain name **Addon domain** or **Alias** and then click on it.
    4. On the page that appears, in the **Manage Resource** box on the left, select **File Manager**.
    5. After loading, select the document\_root folder for the domain name that you want to create the file for. You can access each folder by clicking on the folder name.
    6. Next, click on the **Create new file** button in the middle of the right side of the page.
    7. In the popup window that appears, under the **File Name** box, type the name of the file, then click the **Create** button.
- #### VIA CPANEL INTERFACE
    
    
    1. Log in to the cPanel interface.
    2. Find and click on **File Manager** in the **Files** box. The File Manager pane will open on a new tab
    3. In the upper right corner, click the **Settings** button.
    4. Select the home directory of the affected domain, then select **Show Hidden Files (dotfiles)** and click the **Save** button.
    5. Click the **File** button in the upper left
    6. Under the **New filename:** label, enter the file name and extension you want to create, and then click **Create New File** button.

</div></div></div></div></div></div>#### MODIFY A FILE

Unfortunately, direct editing of files is only possible with the cPanel interface.

<div class="vc_row wpb_row vc_row-fluid" id="bkmrk-log-in-to-the-cpanel"><div class="wpb_column vc_column_container vc_col-sm-12"><div class="vc_column-inner"><div class="wpb_wrapper"><div class="wpb_text_column wpb_content_element "><div class="wpb_wrapper">1. Log in to the cPanel interface
2. Find and click on **File Manager** in the **Files** box.  
    ![File manager](https://dotroll.com/wp-content/uploads/2020/08/filemanager_en.png)
3. In the upper right corner, click the **Settings** button.  
    ![File manager - Settings](https://dotroll.com/wp-content/uploads/2020/08/filemanager_1_en.png)
4. Select the home directory of the affected domain, then select **Show Hidden Files (dotfiles)** and click the **Save** button.  
    ![Show Hidden Files (dotfiles)](https://dotroll.com/wp-content/uploads/2020/08/filemanager_2_en.png)
5. Find the document\_root folder for that domain name and include the file you want to edit, right-click and select **Edit**.  
    ![Edit](https://dotroll.com/wp-content/uploads/2020/08/filemanager_3_en.png)
6. Click the **Edit** button in the window that appears.  
    ![Edit - popup window](https://dotroll.com/wp-content/uploads/2020/08/filemanager_4_en.png)
7. In the editor that opens, make the necessary changes
8. Lastly, save your changes to the word editor by using the **Save Changes** button in the upper right corner.

</div></div></div></div></div></div>