Steps to grant write permission to plesk control panel file or folder:
- Log on to plesk control panel
- Go to the file or file you wish to enable write permission
- Click on the lock icon beside the file or folder
- Tick all options for all options
- Click ok to save and apply settings, the file or folder will now be available for scripts.