Plesk

Unable to install/update APS application in Plesk: Unable to change current directory

Symptoms

Cause

Incorrect permissions of files and folders at /usr/local/psa/var/apspackages/.

Resolution

  1. Connect to the server via SSH;

    Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.

  2. 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 {} ;