Applicable to:
- Plesk for Linux
Symptoms
- Unable to install/update APS application;
- Unable to change application settings via Plesk.
- Unable to update the preferred domain at Plesk > Domains > example.com > Hosting Settings. One of the following errors may be shown:
PLESK_ERROR: Non-zero exit status returned by script. Output stream: 'Unable to change current directory to /opt/psa/var/apspackages/apscataloggDqOIK.zip03123588-b16c-80/cache/scripts'.
PLESK_ERROR: Permission denied in /opt/psa/var/apspackages/apscatalogH0al3t.zipfb51bb1f-c2a0-66/cache/scripts/app-util.php on line 61
PLESK_ERROR: Error: The following error has occurred during the installation of application: Installation of magento at http://example.com/ failed. terminate called after throwing an instance of 'boost::filesystem::filesystem_error' what(): boost::filesystem::status: Permission denied: "/usr/local/psa/var/apspackages/apscatalogH0al3t.zipfb51bb1f-c2a0-66/cache/htdocs"
Cause
Incorrect permissions.
Resolution
- Connect to the server via SSH;
Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.
- Set valid file permissions using the following commands:
For RHEL/CentOS/CloudLinux:
# find /usr/local/psa/var/apspackages/ -type f -a -not -perm 644 -exec chmod 644 {} \;
# find /usr/local/psa/var/apspackages/ -mindepth 1 -type d -a -not -perm 755 -exec chmod 755 {} \;For Debian/Ubuntu:
# find /opt/psa/var/apspackages/ -type f -a -not -perm 644 -exec chmod 644 {} \;
# find /opt/psa/var/apspackages/ -mindepth 1 -type d -a -not -perm 755 -exec chmod 755 {} \;
Comments
2 comments
Command syntax didn't work, need to remove one of the backslashes at the end...
@Walter York, hello. Thank you for the comment. Article was fixed.
Please sign in to leave a comment.