• 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

Resolved Website not served, 'permission denied'

jacboy

New Pleskian
Hey there,

I moved my website from one server to the new Plesk server I've set up. Now I get an error 500 when I access the website and the following information can be found within the error_log.

Code:
[Thu Jul 19 15:30:35.288635 2018] [core:crit] [pid 24931:tid 140132811269888] (13)Permission denied: [client $IP:47306] AH00529: /var/www/vhosts/example.com/httpdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/vhosts/example.com/httpdocs/' is executable

At the moment, there is no .htaccess file. I've attached a few screenshots showing my permissions for the folders.
The "nextcloud-data" folder contains all my personal data which should be made available to the Nextcloud instance.

How can I fix this?


All the best,

Jay
 

Attachments

  • Screen Shot 2018-07-19 at 15.53.45.png
    Screen Shot 2018-07-19 at 15.53.45.png
    450.6 KB · Views: 17
  • Screen Shot 2018-07-19 at 15.53.35.png
    Screen Shot 2018-07-19 at 15.53.35.png
    23.6 KB · Views: 15
  • Screen Shot 2018-07-19 at 15.53.30.png
    Screen Shot 2018-07-19 at 15.53.30.png
    24.2 KB · Views: 13
Thanks for your fast reply!

Code:
root@web1:~# plesk repair fs

Checking Linux system files ......................................... [OK]

Checking virtual hosts' file system

  There are incorrect permissions on some items in the WWW root       
  directory of the domain 'example.com' ........................ [ERROR]
  To see more details, run the command in the verbose mode: plesk repair fs -verbose
  Do you want to repair incorrect permissions? [Y/n] y
    Repairing incorrect permissions ................................. [FIXED]

This didn't fix the problem. The website still throws the following:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

The log file browser isn't very helpful.

Screen Shot 2018-07-19 at 19.51.01.png

Status: The website still doesn't work.


All the best,

Jay
 
maybe this KB will help: Website's layout is broken: pcfg_openfile: unable to check htaccess file

and please check once again the permissions of your folder and files because folder permission are most likely 755 and .htaccess permission 644 and also the right ownership of your website. In your previous screenshot there was often the ownership set to psaserv and this should have be fixed to psacln after the repair.

Note: The /httpdocs directory and the /cgi-bin directory inside it should have the owner psaserv ownership. All other files and directories inside the /httpdocs directory should have the owner psacln ownership.

Please see: Virtual Host Structure (Linux)
 
Last edited:
and please check once again the permissions of your folder and files because folder permission are most likely 755 and .htaccess permission 644 and also the right ownership of your website. In your previous screenshot there was often the ownership set to psaserv and this should have be fixed to psacln after the repair.
It wasn't possible for me to fix this, either manually by hand or with the plesk repair tool. I decided to delete the hosting account completely and start over, which meant I had to transfer the whole Nextcloud instance again, but it now works perfectly.

I don't know what went wrong the first time, but for me it doesn't matter anymore.

All the best,

Jay
 
Back
Top