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 #
- Open your web browser and go to the Plesk login page.
- Enter your credentials and click Log in.
Step 2: Navigate to File Manager #
- In the Plesk dashboard, go to the Websites & Domains section.
- Select the domain where you want to manage file permissions.
- Click on File Manager.
Step 3: Locate the File or Folder #
- Use the File Manager to navigate to the file or folder you want to modify.
- Identify the file or folder by its name and location (e.g.,
httpdocs
,index.php
).
Step 4: Open the Permissions Dialog #
- Click on the file or folder to highlight it.
- Click the Permissions button (usually located in the toolbar above).
- Alternatively, right-click the file or folder and select Change Permissions from the context menu.
Step 5: Adjust Permissions #
- 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.
- Use checkboxes or dropdowns to enable or disable specific permissions.
- Click OK to save your changes.
Step 6: Verify Permissions #
- Ensure the updated permissions are displayed correctly in the File Manager.
- 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 and755
for folders.