SYSTEM INFORMATION | |
---|---|
OS type and version | Ubuntu Linux 20.04.6 |
Webmin version | 2.021 |
Usermin version | 1.861 |
Virtualmin version | 7.7 |
Theme version | 20.21 |
Package updates | All installed packages are up to date |
I try to setup a global composer so that each user at the server can use it by default.
To set it up I did this:
First install composer as root to /usr/local/bin
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php --install-dir=/usr/local/bin/ --filename=composer
php -r "unlink('composer-setup.php');"
In /etc/jailkit/jk_init.ini
I’ve added this at the end
[composer]
executeables=/usr/local/bin/composer
comment=PHP Composer
paths=/usr/local/bin/composer
Then I’ve rebooted the Server.
But if I login as a jailed ssh-user, I still can not find any composer
to use.
BTW:
I’ve also tried to add composer to an existing jailed user with command:
jk_init -c /etc/jailkit/jk_init.ini -f -k -j /home/chroot/16769902463484203/usr/bin/ composer
The jailed user has this content in $PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Without luck.
Any Idea what’s missing?