Applicable to:
- Plesk 12.0 for Linux
- Plesk 12.5 for Linux
- Plesk Onyx for Linux
Symptoms
-
Unable to access File Manager for a certain domain or for all domains on a server:
PLESK_ERROR: Internal error: Unable to find the directory /var/www/vhosts/example.com/: filemng failed: filemng: opendir failed: Permission denied System error 13: Permission deniedMessage Unable to find the directory /var/www/vhosts/example.com/: filemng failed: filemng: opendir failed: Permission denied System error 13: Permission deniedFile FileManagerController.phpLine 1054Type PleskUtilException
-
Unable to execute actions on File Manager: such as ZIP extraction, Copy, Rename, Changing Permissions, etc.
-
Unable to connect via FTP to a domain main folder or a sub-folder with the following error:
CONFIG_TEXT: Unable to connect FTP :421 Service not available, remote server has closed.
-
Alternatively, it is not possible adding files to archive in Domains > example.com > File Manager > Add to Archive:
PLESK_ERROR: Unable to create the archive: filemng failed: filemng: /usr/bin/zip execution failed: zip warning: Permission denied zip warning: Permission denied zip warning: Permission denied zip warning: Permission denied zip warning: Permission denied zip warning: Permission denied.
-
WordPress domain may show 500 Internal Server Error error or File not Found, with the following message in the
/var/www/vhosts/example.com/logs/error_log
:CONFIG_TEXT: AH01071: Got error 'PHP message: Unable to open /var/www/vhosts/example.com/httpdocs/wp-content/wflogs/ips.php for reading and writing.\nPHP message: PHP Warning: require_once(/var/www/vhosts/example.com/httpdocs/wp-config.php): failed to open stream: Permission denied in /var/www/vhosts/example.com/httpdocs/wp-load.php on line 37\nPHP message: PHP Fatal error: require_once(): Failed opening required '/var/www/vhosts/example.com/httpdocs/wp-config.php' (include_path='.:/opt/plesk/php/7.2/share/pear') in /var/www/vhosts/example.com/httpdocs/wp-load.php on line 37\n'
Or
CONFIG_TEXT: [proxy_fcgi:error] [pid 10954] [client 203.0.113.2:56356] AH01071: Got error 'Primary script unknown\
Cause
Incorrect permissions on domain's folder.
Resolution
Click on a section to expand
- Log in to Plesk GUI
- Go to Extensions > Install Repair Kit extension as it is described in this article: How to install Plesk extension? > Open Repair Kit Extension
- Click on File System > Repair
-
Connect to the server via SSH
-
Run the following command to repair file permissions by Plesk:
# plesk repair fs example.com
Checking virtual hosts' file system
There are files or directories with suspicious permissions in the
root directory of the domain 'example.com' ..................... [WARNING] -
Correct the permissions for the affected folders, setting the subscription system user and group:
# chown -R sysuser:psaserv /var/www/vhosts/example.com/httpdocs/
# chown -R sysuser:psacln /var/www/vhosts/example.com/error_docs/
# chown -R sysuser:psaserv /var/www/vhosts/example.com/web_users/
# chown -R sysuser:root /var/www/vhosts/example.com/logswhere
sysuser - system user (main user) of the subscription that should be the same as shown in Domains > example.com > Web Hosting Access -
Check permissions again and OK message should be displayed:
# plesk repair fs -verbose example.com
Checking virtual hosts' file system ................................. [OK]
Error messages: 0; Warnings: 0; Errors resolved: 0
Comments
0 comments
Please sign in to leave a comment.