Applicable to:
- Plesk for Linux
Symptoms
-
Unable to install/update APS application
-
Unable to change application settings via Plesk with the following warning:
Non-zero exit status returned by script. Output stream: 'Caught exception: boost::filesystem::directory_iterator::construct: Permission denied: "/usr/local/psa/var/apspackages/bc3e694c-9f41-47a8-8721-ee58276c9d4d/cache/scripts"
-
The preferred domain can not be changed at Plesk > Domains > example.com > Hosting Settings. One of the following errors may be shown:
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'.
Permission denied in /opt/psa/var/apspackages/apscatalogH0al3t.zipfb51bb1f-c2a0-66/cache/scripts/app-util.php on line 61
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 of files and folders at /usr/local/psa/var/apspackages/
.
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
0 comments
Please sign in to leave a comment.