Understanding Menu Items in File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager.
The cPanel File Manager has powerful features to manage your files. Let’s check all of the features you can use in this web-based file manager.

  1. You can create new files and new folders with these menu items.

    filemgr-cpanel-2-menuitems-scene2a

    You can copy files and folders into  the same or other folders. You can also move them easily.

    filemgr-cpanel-2-menuitems-scene2b

  2. To delete files, simply click on Delete.

    filemgr-cpanel-2-menuitems-scene2c

    An FTP client is no longer needed to upload and download files and folders. You can simply do it via these buttons!

    filemgr-cpanel-2-menuitems-scene2d

    You can even edit text based files like HTML, PHP and text files with the help of these menu items! No need to use web page editors for small changes.

    filemgr-cpanel-2-menuitems-scene2e

  3. Some web based script installations will require you to change file and folder permissions, which you can do with this button.

    filemgr-cpanel-2-menuitems-scene3a

  4. View files by clicking this button.

    filemgr-cpanel-2-menuitems-scene3b

  5. Have too many files to upload? Just compress it and upload it in a ZIP file and extract it with this button.

    filemgr-cpanel-2-menuitems-scene3c

  6. Too many files to download? Just compress it with this button.

    filemgr-cpanel-2-menuitems-scene3d

  7. This area shows the file and folder structure of your website.

    filemgr-cpanel-2-menuitems-scene4a

  8. This area shows the contents of the selected file or folder (in this case, the public_html folder).

    filemgr-cpanel-2-menuitems-scene4b

  9. These navigation buttons let you go to other folders, reload file lists and select or deselect files and folders.

    filemgr-cpanel-2-menuitems-scene4d

  10. You can also search files here.

    filemgr-cpanel-2-menuitems-scene6_1

    We will learn all these navigation items in detail in the next tutorials.

 

Understanding File Structure in File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager.

  1. All of your website’s files should be in the public_html folder. When you are in File Manager, always select it first to access your files.

    filemgr-cpanel-3-structure-scene02_1

  2. You can find which folder you are accessing now by checking the path here.

    filemgr-cpanel-3-structure-Scene3b

    The public_ftp folder has all your public ftp account data.

  3. Click on public_ftp to continue.

    filemgr-cpanel-3-structure-scene05_1

    Unless you are an advanced user, we strongly advise you not to touch or modify the contents of this folder.

    filemgr-cpanel-3-structure-Scene5b

    You are now in your public_ftp folder. You can see all the data uploaded by anonymous FTP users.

  4. Let’s check the Mail folder. Click on Mail.

    filemgr-cpanel-3-structure-Scene5c

    You are now in the mail folder. Here you’ll see the same folders as you see in your mail client. All of your email data will be stored in these folders.
    Unless you are an advanced user, we recommend that you do not modify the contents of this folder either.
    Now let’s have a glance at the other folders.
    This folder contains the cPanel software data.

    filemgr-cpanel-3-structure-Scene7a

    This folder contains encrypted passwords.

    filemgr-cpanel-3-structure-Scene7b

    As the folder name suggests, this folder is .trash, all deleted files and folders are moved here.

    filemgr-cpanel-3-structure-Scene7c

    This folder contains access logs for your website.

    filemgr-cpanel-3-structure-Scene7d

  5. You can access any of the folders or sub folders directly by typing the path here.

    filemgr-cpanel-3-structure-Scene8a

    Type your desired path and click the Go button.

    filemgr-cpanel-3-structure-Scene8b

    You are now in your desired folder.

 

How To Create New Files and Folders in File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager.

  1. Click on New File.

    filemgr-cpanel-4-new-scene02_1

    Leave the public_html path as it is because we always need to upload files in this folder. You will learn how to upload files in subfolders a little later.

  2. Type the file name here.

    filemgr-cpanel-4-new-scene03_1

  3. Then click Create New File.

    filemgr-cpanel-4-new-scene04_1

    Your file has been created successfully.

  4. Let’s create a new folder now. Click on New Folder.

    filemgr-cpanel-4-new-scene05_1

  5. Type the folder name here.

    filemgr-cpanel-4-new-scene06_1

  6. Please type the path where you want to create this new folder.In this case, we will keep it as it is.

    filemgr-cpanel-4-new-Scene6a

  7. Click Create New Folder to continue.

    filemgr-cpanel-4-new-Scene6b

    Your folder was created successfully.

    filemgr-cpanel-4-new-Scene7a

    You can also see it in the left margin.

    filemgr-cpanel-4-new-Scene7b

 

How To Copy and Move Files in File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager.

  1. Select the file you want to copy. Let’s select testfile.html.

    filemgr-cpanel-5-copy-scene02_1

  2. Click on Copy.

    filemgr-cpanel-5-copy-scene03_1

  3. Please type the file destination, in this case, we will use the “test” folder, then click on Copy File(s).

    filemgr-cpanel-5-copy-scene04_1

    You have successfully copied the file. To check it, either double click on the “folder name” in the right margin, or single click on the “folder name” in the left margin.

    filemgr-cpanel-5-copy-scene05_1

    It’s there. You have successfully copied the file.

  4. Now let’s Move newtest.html to thepublic_html folder. Select newtest.html, and click Move file.

    filemgr-cpanel-5-copy-scene07_1

  5. Make sure your path is public_html only. Now click on Move file(s).

    filemgr-cpanel-5-copy-scene08_1

  6. Notice that the newtest.html file is gone from this list. To confirm that it has moved to public_html, click it in the left margin.

    filemgr-cpanel-5-copy-scene10_1

    Congratulations, you have successfully moved the file. You can also copy multiple files by simply pressing the control key, selecting them and dragging the files to the destination folder in the right margin. Or you can move a single file by just dragging it to the destination folder in the left margin.

 

How To Upload and Download Files with File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager.

  1. Click Upload to go to the upload page.

    filemgr-cpanel-7-upload-scene02_1

    Now let’s explore the content of the page.

    filemgr-cpanel-7-upload-scene03_1

    This info tells you that you have a file size limit of 999.58 MB for this account. This may be different depending on the account type you have. Please note that the upload page will be opened in a new tab of the browser. If checked, this option allows you to overwrite files if they are already found in the same folder.
    You can set permissions for the files here. We will learn about this in the next tutorial. For now leave it as is.

  2. Now let’s upload a file. Click the Browse button to select the file from your computer.

    filemgr-cpanel-7-upload-scene04_1

  3. Now select the file you want to upload. Let’s upload “Chrysanthemum”. Double click it to continue.

    filemgr-cpanel-7-upload-scene05_1

    You will see the file name in the box. The uploading process will start automatically, and soon a progress bar at the bottom right will appear.

    filemgr-cpanel-7-upload-scene07_1

    The process has been started.
    Information will be provided about the upload progress… Such as, the amount uploaded, percentage, estimated time and upload speed.

    filemgr-cpanel-7-upload-scene08_1

  4. Now the upload has completed.

    filemgr-cpanel-7-upload-scene09_1

    Close this tab and go back to the File Manager.

  5. Click Reload to see the file.

    filemgr-cpanel-7-upload-scene10_1

    You have successfully uploaded the file.

  6. Now let’s download a file. Select “testfile.html” by single clicking it, and click the Download button.

    filemgr-cpanel-7-upload-scene12_1

  7. You will see a popup window asking you to open or save the file. Select Save File.

    filemgr-cpanel-7-upload-scene13_1

  8. Good! Now click OK to continue.

    filemgr-cpanel-7-upload-scene14_1

    That’s it! You have successfully downloaded the file.

 

How To Edit Files with File Manager

 There are three different ways to edit files in the File Manager: Text editor, Code editor and HTML editor.
This tutorial assumes you’ve already logged in to cPanel’s File Manager.
Text editor and Code editor can be opened within each other’s interface.

  1. HTML Editor has its own interface. Let’s edit a file. Select “testfile.html” by single clicking it.
  2. Now click the Edit button to open the Text Editor.

    filemgr-cpanel-8-edit-scene02_1

  3. You will see this Encoding Check screen every time you edit a file. Either disable it or just click Edit. In this case, we’ll click Edit.

    filemgr-cpanel-8-edit-scene04_1

    The editor will be opened in a new tab. As you can see, we don’t have any text in this file, so let’s write some.

  4. Now click on Save Changes to save the text.

    filemgr-cpanel-8-edit-scene05_1

  5. You have successfully saved the file. Now let’s check the “Code editor”. Click on “Use Code Editor” to access it.

    filemgr-cpanel-8-edit-scene06_1

    This menu has a WYSIWYG editor, which will allow you to edit text easily without knowing any HTML code. Just select the text and choose your options. That’s it!

  6. Now let’s check the HTML Editor. Just click Close to go back to the File Manager.
  7. Keep “testfile.html” selected and click on HTML Editor.

    filemgr-cpanel-8-edit-scene09_1

  8. Click Edit to continue.

    filemgr-cpanel-8-edit-scene10_1

    Note that this editor has more WYSIWYG options.

    filemgr-cpanel-8-edit-scene11_1

    Again, this editor will be opened in a new tab.
    You will also be able to view code in Design mode, Source mode and Preview mode.

  9. To close this editor, just close this tab and go back to the File Manager.

 

How To Change File Permissions with File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager

  1. To change the permissions of a file, select it first. Single click on “testfile.html”.

    filemgr-cpanel-9-permissions-scene2_1

  2. Click on Change Permissions.

    filemgr-cpanel-9-permissions-scene3_1

    You will see a popup window with some checkboxes. Let’s understand this window first.
    There are three type of owners of the file.

    • User – means you.
    • Group – the users from your website, who have access to these files.
    • World – end users who access your site via a web browser.

    These are read, write and execute options. Each row give access to read, write and execute files.
    In this case, User will have access to read and write this file.
    Group will have only read access.
    And World will have Read access only.
    Please note that unless any particular script needs special permissions, a file should always have 644 permissions, and a Folder should always have 755 permissions.

  3. To set 755 permissions, just check the boxes appropriately.

    filemgr-cpanel-9-permissions-scene6_1

  4. Now click on Change Permissions to apply these changes.

    filemgr-cpanel-9-permissions-scene7_1

 

How To Zip and Unzip Files in File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager.
Let’s first learn how to zip the files.

  1. Select the files you want to compress by clicking on each file icon while holding the control key.
  2. Click on “testfile.html”, “newtest.html” and “Chrysanthemum.jpg” one by one.
    You have selected all of the files you want to compress. If you want to select all files and sub folders in this folder, simply click Select all. Now click Compress.

    filemgr-cpanel-10-zip-scene05_1

  3. You will get a popup asking for a compression type. Let’s choose Zip Archive.

    filemgr-cpanel-10-zip-scene06_1

  4. Click on Compress File(s) to continue.

    filemgr-cpanel-10-zip-scene07_1

    As soon as it has completed, you will get a progress window like this one. Click Close to continue.
    Your files have been successfully compressed!

    filemgr-cpanel-10-zip-scene08_1

  5. Now let’s learn how to extract a compressed file. Select the “Chrysanthemum.jpg.zip” file we just compressed.

    filemgr-cpanel-10-zip-scene09_1

  6. Click on Extract.

    filemgr-cpanel-10-zip-scene10_1

  7. It will ask you where to extract the zip file. Just choose your destination and click Extract File(s).

    filemgr-cpanel-10-zip-scene11_1

  8. Again, it will show your progress in a popup. Just click close to continue.

    filemgr-cpanel-10-zip-scene12_1

    Congratulations! You have successfully extracted the files.

    filemgr-cpanel-10-zip-scene13_1

 

How To Rename Files in File Manager

 
This tutorial assumes you’ve already logged in to cPanel’s File Manager.
You can rename files and folders the same way. There are actually two ways to do this.

  1. Let’s try it. Double click on “newtest.html”.Make sure you click on the file name only and not on an icon or anywhere else.

    filemgr-cpanel-6-rename-scene2_1

  2. One way is to double click on a “File Name” and simply type a new name.

    filemgr-cpanel-6-rename-scene3_1

    Now type a new name. In this case, we will just add “my”, so the name will be”mynewtest.html”. Press enter after you’re done.

  3. Now let’s try another method. Single click on “mynewtest.html”and then click on Rename.

    filemgr-cpanel-6-rename-scene5_1

  4. Type your new name here. In this case, we will just remove “my” from the name.

    filemgr-cpanel-6-rename-scene6_1

  5. Now click Rename File to apply the changes.

    filemgr-cpanel-6-rename-scene7_1

    You have successfully renamed the file.You can rename folders the same way.

 

Understanding cPanel Security Advisor Notices

In an effort to increase security, cPanel has modified the default notification settings for certain items that the control panel monitors. Due to the change in notification settings, cPanel users may receive notifications that they previously had not encountered. In particular, a number of changes were made to the notification options for Security Advisor beginning with the release of WHM 56.

‘New security advisor notifications with high importance’

All notifications and included recommendations should be duly noted, but it is important to understand that Security Advisor notifications come from cPanel, not Liquid Web, and they are based solely upon the limited information that their software is able to access. By design, certain software and security measures run outside of cPanel, leading Security Advisor to occasionally detect false positives or otherwise flag items which may not be applicable to your server.

This article, which will be updated periodically, is meant to serve as a point of reference for such notifications.

MySQL Listening on All Interfaces

Security Advisor Notice: The MySQL service is currently configured to listen on all interfaces: (bind-address=*) Configure bind-address=127.0.0.1 in /etc/my.cnf
This most often is a false positive. Liquid Web servers include an advanced firewall that drops traffic to all ports which have not specifically been allowed, but Security Advisor’s check is unable to take this into account. Moreover, Liquid Web’s 24/7 Sonar Monitoring™ needs to be able to connect to MySQL to monitor the service’s status. Sonar Monitoring™ uses a port which is not publicly accessible, but Security Advisor does not take that into account.

SSH Password Authentication is Enabled

Security Advisor Notice: Disable SSH password authentication in the “SSH Password Authorization Tweak” area
This message indicates only that you can log into your server with a password. For maximum security, SSH keys are typically recommended, but as long as you’re using strong passwords, you may prefer to continue the practice. In any case, you will not want to disable SSH password authentication until you have set up and tested SSH keys to connect to your server.

SSH direct root logins are permitted

Manually edit /etc/ssh/sshd_config and change PermitRootLogin to “no”, then restart SSH in the “Restart SSH” area
This message indicates only that the root user can log into your server with the proper password or SSH key. For maximum security, you ideally would want to disable the root user login and add another user for that purpose.

If you need further guidance, feel free to contact Heroic SupportĀ®.