The Plesk File Manager includes built-in text and code editors, so you can edit files directly on the server without downloading and re-uploading them. This is useful for making quick changes to configuration files, PHP scripts, or HTML pages.
Editing a File
- Log in to Plesk.
- Go to Websites & Domains → click your domain → Files.
- Navigate to the file you want to edit.
- Hover over the file and click the context menu (three dots).
- Click Edit in Code Editor (for code files) or Edit in Rich Editor (for HTML with a visual editor).
- Make your changes in the editor.
- Click Save or OK to apply the changes.
Creating a New File
- In File Manager, navigate to the directory where you want to create the file.
- Click New → Create File.
- Enter the file name (e.g.,
test.phpor.htaccess). - Click OK.
- The file will be created and opened in the editor.
Important Notes
- Changes take effect immediately after saving.
- Always back up a file before editing (right-click → Copy and rename the copy).
- The Code Editor supports syntax highlighting for PHP, HTML, CSS, JavaScript, and other web languages.
- For files larger than 1 MB, downloading and editing locally is recommended.
Troubleshooting
"Edit" option is not available for a file:
- The file type may not be supported by the editor. Download and edit locally.
Website breaks after editing a file:
- Restore from your backup copy.
- Check for syntax errors in your code.