Symptoms
- A website hosted on Plesk looks broken (missing images, broken layout, etc.).
- The browser console (e.g. Chrome DevTools) shows that several files were not loaded with errors 404
- Tools & Settings > Diagnose & Repair page displays an error:
There is incorrect ownership on some items in the WWW root directory of the domain 'example.com'.
Cause
Incorrect permissions or ownerships are set for the website's files.
Resolution
- Log in to Plesk
- Go to Tools & Settings > Diagnose & Repair and click the Repair button next to the error.
Command-line solution (Linux)
- Log in to the Plesk server via SSH
- Fix permissions for the affected domain:
# plesk repair fs example.com -y
Command-line solution (Windows)
- Log in to the Plesk server via RDP
- Start a command prompt as the Administrator
- Fix permissions for the affected domain:
C:> plesk repair fs example.com -y