How to add Composer to a chrooted environment in Plesk?

Follow

Comments

3 comments

  • Avatar
    exciting IT Swetlana Schell

    I finished all the steps from above, but I am getting:

    bash-5.1$ composer
    '/opt/psa/var/modules/composer/composer.phar' not found

    but it works when I start it like this:

    bash-5.1$ ./composer 
       ______
      / ____/___  ____ ___  ____  ____  ________  _____
     / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
    / /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
    \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                        /_/
    Composer version 2.6.6 2023-12-08 18:32:26

    Usage:
    command [options] [arguments]

    Is there a step missing in the instructions?

    0
    Comment actions Permalink
  • Avatar
    Unknown User

    I'm having the same issue after adding composer:

    bash-5.0$ composer
    '/usr/lib/plesk-9.0/composer.phar' not found
    bash-5.0$ ./composer 
    bash: ./composer: No such file or directory
    0
    Comment actions Permalink
  • Avatar
    Unknown User

    It works after you change SSH access type from '/bin/bash chrooted' to '/bin/bash'. But that's not what we want..

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request