Symptoms
-
An operation in Plesk interface fails with a
Permission denied
error:PLESK_ERROR: Unable to read components configuration from the service node: sh: /usr/local/psa/admin/bin/packagemng: Permission denied
PLESK_ERROR: ifmng: execve failed for /usr/local/psa/admin/sbin/ifmng: Permission denied
System error 13: Permission denied
PLESK_ERROR: ERROR: Service_Agent_Exception
Unable to execute php_handlers_control: php_handlers_control: execve failed for /usr/local/psa/admin/sbin/php_handlers_control: Permission denied
System error 13: Permission denied
PLESK_ERROR: ERROR: PleskUtilException
mailmng-server failed: mailmng-server: execve failed for /usr/local/psa/admin/sbin/mailmng-server: Permission denied
System error 13: Permission denied
PLESK_ERROR: Internal error: mailmng-mailname failed: Unable to open dir /var/qmail/mailnames/example.com/test/@attachments: Permission denied System error 13: Permission denied
PLESK_ERROR: lsws_cmd: execve failed for /usr/local/psa/admin/sbin/modules//litespeed/lsws_cmd: Permission denied
PLESK_ERROR: ERROR: PleskFatalException: StatInfo->getProductVersion failed: sysinfo failed: sysinfo: execve failed for /usr/local/psa/admin/sbin/sysinfo: Permission denied
-
Migration pre-check fails with the following error:
PLESK_ERROR: COMMAND: ‘/usr/local/psa/admin/sbin/modules/panel-migrator/plesk-migrator’ ‘generate-migration-list’ ‘/usr/local/psa/var/modules/panel-migrator/sessions/20171101170413/config.ini’ ‘–migration-list-format=json’ ‘–migration-list-file=/usr/local/psa/var/modules/panel-migrator/sessions/20171101170413/migration-list-raw.json’ ‘–skip-services-checks’ ‘–include-existing-subscriptions’ ‘–async’ ‘–overwrite’ ‘–reload-source-data’ EXIT CODE: 126 STDOUT: STDERR: sh: /usr/local/psa/admin/bin/modules/panel-migrator/plesk-migrator: Permission denied
Cause
Plesk service cannot execute a backend utility or the utility is unable to change some files due to incorrect permissions.
Resolution
-
Connect to the server via SSH.
-
Make sure that the following files have the proper permissions and owners:
# ls -al /usr/local/psa/admin/sbin/*wrapper
-r-s–x— 1 root psaadm 13120 Jun 13 21:51 ./admin/sbin/mod_wrapper
-r-s–x— 1 root psaadm 13632 Jun 13 21:51 ./admin/sbin/wrapper -
If permissions above are not correct use the following commands to fix them :
# cd /usr/local/psa/
# chown root:psaadm ./admin/sbin/*wrapper
# chmod 4510 ./admin/sbin/*wrapper -
Make sure that the correct permissions are set to all the directories below:
# ls -ld /usr/local/psa/admin/sbin/
drwxr-xr-x 3 root root 4096 Sep 22 03:28 /usr/local/psa/admin/sbin/# ls -ld /usr/local/psa/admin/
drwxr-xr-x 18 root root 4096 Aug 11 2014 /usr/local/psa/admin/# ls -ld /usr/local/psa/
drwxr-xr-x 15 root root 4096 Sep 14 05:27 /usr/local/psa/# ls -ld /usr/local/
drwxr-xr-x 14 root root 4096 Aug 19 11:35 /usr/local/# ls -ld /usr/
drwxr-xr-x 13 root root 4096 Jul 6 16:48 /usr/# ls -ld /
dr-xr-xr-x 20 root root 4096 Oct 28 12:40 / -
Make sure that the correct permissions are set to the following folder as also:
-
For Centos 7:
# ls -ld /bin
lrwxrwxrwx 1 root root 7 Mar 8 2017 /bin -> usr/bin# ls -ld /usr/bin/
dr-xr-xr-x. 2 root root 28672 Apr 18 20:29 /usr/bin/ -
For other OSes:
# ls -ld /bin
dr-xr-xr-x 2 root root 4096 Mar 16 03:20 /bin
-