• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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