Applicable to:
- Plesk for Linux
Symptoms
-
Website hosted in Plesk or some sections are inaccessible with the following error in /var/www/vhosts/example.com/logs/error_log):
CONFIG_TEXT: AH01071: Got error 'PHP message: PHP Warning: require(/var/www/vhosts/example.com/httpdocs/wp-includes/load.php): failed to open stream: Permission denied in /var/www/vhosts/example.com/httpdocs/wp-settings.php on line 19
PHP message: PHP Fatal error: require(): Failed opening required '/var/www/vhosts/example.com/httpdocs/wp-includes/load.php' (include_path='.:/opt/plesk/php/7.1/share/pear') in /var/www/vhosts/example.com/httpdocs/wp-settings.php on line 19'
CONFIG_TEXT: [crit] [client 203.0.113.2] (13)Permission denied: /var/www/vhosts/example.com/httpdocs/css/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://www.example.com/index.html
Note: the path in bold may differ.
Unable to open file manager:PLESK ERROR: Unable to find the directory /var/www/vhosts/example.com: filemng failed: move_to_cgroup(): pam_open_session() failed 6: Permission denied Unable to limit resources for process 6665 for user joedoe filemng: opendir failed: Permission denied System error 13: Permission denied
Cause
Incorrect permissions/ownership for website files/directories:
Resolution
- Login to Plesk
- Go to Subscriptions > example.com and determine the system user for the subscription:
-
Connect to the server using SSH.
-
Run the following commands:
Note: Replace "johndoe" with the system user name from step #2
# find /var/www/vhosts/example.com/httpdocs/ -type f -exec chmod 644 {} \;
# find /var/www/vhosts/example.com/httpdocs/ -type d -exec chmod 755 {} \;
# find /var/www/vhosts/example.com/httpdocs/ -type f -exec chown johndoe:psacln {} \;
# find /var/www/vhosts/example.com/httpdocs/ -type d -exec chown johndoe:psacln {} \;
Comments
2 comments
Working fine.
If you face the issue of a subdomain, you can copy the directory from the error logs.
Thanks!
Hi,
This is the error am getting, can you help?
========================
An uncaught Exception was encountered
Type: Exception
Message: Session: Configured save path '/var/www/vhosts/firstworld-communities.com/httpdocs/tmp-sessions' is not writable by the PHP process.
Filename: /var/www/vhosts/firstworld-communities.com/httpdocs/firstworld/system/libraries/Session/drivers/Session_files_driver.php
Line Number: 124
Backtrace:
File: /var/www/vhosts/firstworld-communities.com/httpdocs/firstworld/application/controllers/Home.php
Line: 8
Function: __construct
File: /var/www/vhosts/firstworld-communities.com/httpdocs/firstworld/index.php
Line: 300
Function: require_once
Please sign in to leave a comment.