Article ID: 129187, created on Jul 31, 2016, last review on Jul 31, 2016

  • Applies to:
  • Plesk Automation 11.5

Symptoms

On attempt to update Hosting Settings, e.g. change proffered domain, change PHP version or etc, for any domain following error occurs in CCP:

"Error: No secure shell available" 

Cause

Secured shell is not configured on Apache web hosting node.

Resolution

  1. Login to Apache web hosting nodes and check system environment as follows:

    [root@pa115apachemysql1 bin]# cat /etc/shells
    /bin/sh
    /bin/bash
    /sbin/nologin
    /bin/tcsh
    /bin/csh
    /bin/false
    /usr/local/psa/bin/chrootsh
    

    /usr/local/psa/bin/chrootsh - is used by Plesk Automation for chroot access.

    [root@pa115apachemysql1 bin]# /usr/local/psa/admin/sbin/sysinfo getshell
    /bin/false
    /bin/sh
    /bin/bash
    /sbin/nologin
    /bin/tcsh
    /bin/csh
    

    If /usr/local/psa/bin/chrootsh is missing, it means that secured shell is not available.

  2. Make sure that /var/www/vhosts/chroot/bin/ exists and contains executable files:

    [root@pa115apachemysql1 bin]# ls -laht /var/www/vhosts/chroot/bin/
    total 5.3M
    drwxr-xr-x  2 root root 4.0K Nov 28  2015 .
    drwxr-xr-x 10 root root 4.0K Nov 28  2015 ..
    -rwxr-xr-x  3 root root 208K Nov 10  2015 zip
    -rwxr-xr-x  3 root root 885K Sep 22  2015 bash
    -rwxr-xr-x  3 root root 885K Sep 22  2015 sh
    -rwxr-xr-x  3 root root  63K Aug 13  2015 scp
    -rwxr-xr-x  3 root root 118K Jul 24  2015 curl
    -rwxr-xr-x  3 root root 886K Jul 24  2015 vi
    -rwxr-xr-x  3 root root 160K Jul 24  2015 grep
    -rwxr-xr-x  3 root root 382K Jul 24  2015 tar
    -rwxr-xr-x  3 root root 157K Mar 18  2015 unzip
    -rwxr-xr-x  3 root root 350K Oct 30  2014 wget
    -rwxr-xr-x  3 root root  36K Oct 15  2014 more
    -rwxr-xr-x  3 root root  45K Oct 15  2014 cat
    -rwxr-xr-x  3 root root  48K Oct 15  2014 chmod
    -rwxr-xr-x  3 root root 115K Oct 15  2014 cp
    -rwxr-xr-x  3 root root  21K Oct 15  2014 false
    -rwxr-xr-x  3 root root  45K Oct 15  2014 ln
    -rwxr-xr-x  3 root root  44K Oct 15  2014 mkdir
    -rwxr-xr-x  3 root root 105K Oct 15  2014 mv
    -rwxr-xr-x  3 root root  28K Oct 15  2014 pwd
    -rwxr-xr-x  3 root root  53K Oct 15  2014 rm
    -rwxr-xr-x  3 root root  47K Oct 15  2014 touch
    -rwxr-xr-x  3 root root  21K Oct 15  2014 true
    -rwxr-xr-x  3 root root  94K Oct 15  2014 du
    -rwxr-xr-x  3 root root  24K Oct 15  2014 groups
    -rwxr-xr-x  3 root root  32K Oct 15  2014 head
    -rwxr-xr-x  3 root root  28K Oct 15  2014 id
    -rwxr-xr-x  3 root root 107K Oct 15  2014 ls
    -rwxr-xr-x  3 root root  37K Oct 15  2014 rmdir
    -rwxr-xr-x  3 root root  57K Oct 15  2014 tail
    -rwxr-xr-x  3 root root 147K Jun 16  2014 less
    -rwxr-xr-x  3 root root   61 Mar 18  2014 gunzip
    -rwxr-xr-x  3 root root  64K Mar 18  2014 gzip
    

If it does not exists or empty do the following:

  1. Create /var/www/vhosts/chroot/bin/ directory:

    [root@pa115apachemysql1 ~]# mkdir -p /var/www/vhosts/chroot/bin/
    
  2. Copy /bin/bash file there:

    [root@pa115apachemysql1 ~]# cp -rp /bin/bash /var/www/vhosts/chroot/bin/
    
  3. Update Service Node environment under Hosting Provider CP > infrastructure > Service nodes > Service Node Name > Refresh User-installed packages.

    Note: Make sure that secured shell is configured on other Apache web hosting nodes.

Search Words

Unable to update Hosting settings

Error: No secure shell available

No secure shell available

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF