How to Set File and Folder Permissions

2 min read

Correct file and folder permissions are crucial for the security and functionality of your website. This guide explains how to set permissions using the Plesk File Manager.

Step 1: Log in to Plesk #

  1. Open your web browser and go to the Plesk login page.
  2. Enter your credentials and click Log in.

 

 

 

Step 2: Navigate to File Manager #

  1. In the Plesk dashboard, go to the Websites & Domains section.
  2. Select the domain where you want to manage file permissions.
  3. Click on File Manager.

 

 

 

Step 3: Locate the File or Folder #

  1. Use the File Manager to navigate to the file or folder you want to modify.
  2. Identify the file or folder by its name and location (e.g., httpdocs, index.php).

 

 

Step 4: Open the Permissions Dialog #

  1. Click on the file or folder to highlight it.
  2. Click the Permissions button (usually located in the toolbar above).
  3. Alternatively, right-click the file or folder and select Change Permissions from the context menu.

 

 

 

Step 5: Adjust Permissions #

  1. In the Permissions dialog, set the appropriate permissions for different user groups (e.g., Owner, Group, Others).
    • Read: Allows users to view the file or folder.
    • Write: Allows users to modify the file or folder.
    • Execute: Allows users to run scripts or execute programs.
  2. Use checkboxes or dropdowns to enable or disable specific permissions.
  3. Click OK to save your changes.

 

Step 6: Verify Permissions #

  1. Ensure the updated permissions are displayed correctly in the File Manager.
  2. Test the functionality of your website to ensure the changes do not cause issues.

 

Recommended Permissions #

  • Files: Set permissions to 644 (readable by the server but only writable by the owner).
  • Folders: Set permissions to 755 (accessible to the server but only writable by the owner).
  • Avoid 777 permissions unless absolutely necessary, as it can pose a security risk.

 

Tips #

  • Use permissions carefully to avoid exposing sensitive files or breaking functionality.
  • For advanced setups, consult your developer or hosting provider before making changes.
  • If unsure, default to 644 for files and 755 for folders.
Updated on December 30, 2024

What are your feelings

  • Happy
  • Normal
  • Sad