Editing files directly in the Plesk File Manager is convenient for making quick changes to your website files, such as updating HTML, PHP, or configuration files.
Follow these steps to edit a file in Plesk:
Step 1: Log in to Plesk
- Open your web browser and navigate to your Plesk login page:
- Example:
https://yourdomain.com:8443
orhttps://your-server-ip:8443
.
- Example:
- Enter your username and password, then click Log In.
Step 2: Access the File Manager
- In the Plesk dashboard, locate the domain or subscription associated with the file you want to edit.
- Click on File Manager under the Websites & Domains tab.
Step 3: Navigate to the File
- Use the File Manager interface to locate the file you want to edit.
- Files are typically located in the httpdocs directory for the website’s root files.
- Click on the folder to navigate deeper into the directory structure.
Step 4: Open the File for Editing
- Once you find the file, click the file name to select it.
- Click on the Edit in Text Editor option from the top menu or right-click on the file and select Edit in Text Editor.
Step 5: Make Changes to the File
- A text editor will open within the Plesk interface, displaying the file’s contents.
- Make the necessary edits to the file.
- For example, modify HTML code, PHP scripts, or configuration settings.
- Double-check your changes to ensure there are no syntax errors or unintended modifications.
Step 6: Save the Changes
- Click the Save button at the top of the text editor after making your edits.
- If you want to exit without saving, click Cancel.
Step 7: Test the Changes
- Open your website in a browser or reload the page to ensure the changes are applied correctly.
- If the changes don’t appear, clear your browser cache or check for errors in your code.
Tips for Editing Files in Plesk
- Backup Files: Always create a backup of the file before editing, especially for critical files like
wp-config.php
or.htaccess
. You can use the Download option in File Manager to save a local copy. - Permissions: Ensure the file has the correct permissions to allow editing. Modify permissions via the File Manager if needed.
- Syntax Highlighting: Use the Plesk text editor’s syntax highlighting feature for better readability and to avoid errors when editing code.
By following these steps, you can quickly and safely edit files using the Plesk File Manager, allowing for efficient website updates and configuration changes.