• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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