• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Plesk websites is broken after this command

E.Swestberg

New Pleskian
I typed this command to console.
"sudo chown -R www-data:www-data /var/www"
After that command my Plesk websites is not working anymore.

Error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.....

Any suggestion what I can try to fix it, please ?
my website folders are at "/var/www/vhosts/websites.com/" if that helps.

My setup is:
Ubuntu 14.04.4 LTS and Plesk version: 12.0.18 Update #96


Br. Esa
 
Last edited:
On my sever
/var/www/cgi-bin is root:root including subdirectories and files
/var/www/html is root:root including subdir and files
/var/www/usage is webalizer:root including subdir and files
vhosts is the one you probably messed up.
/var/www/vhosts is root:root but the subdirectories and files are appropriate for the domain user account.

chown "your_plesk_username: psaserv /var/www/vhosts/yourdomain/"
chown -R "your_plesk_username: psacln /var/www/vhosts/yourdomain/httpdocsdir"
chown "your_plesk_username: psaserv /var/www/vhosts/yourdomain/httpdocsdir"
I also have a few other directories, anon_ftp, cgi-bin, httpsdocs, and private which are "your_plesk_username: psaserv" ( I had to put a space between : and psaserve and psacln else I get a :p )

I'm sure there is a KB on proper file permissions kicking around.
 
# /usr/local/psa/bin/repair --restore-vhosts-permissions
 
Last edited by a moderator:
Back
Top