- First install Composer and PHP for the jailed user. This article has the steps
- composer require aws/aws-sdk-php — as the jailed user
- There might be an error –
fopen(/usr/share/php/Composer/Autoload/../../../doc/composer/copyright): failed to open stream: No such file or directory
- You can copy the file using the root login
- mkdir -p /var/www/clients/client1/web1/usr/share/doc/composer
- cp /usr/share/doc/composer/copyright /var/www/clients/client1/web1/usr/share/doc/composer/
- chown web1:client1 /var/www/clients/client1/web1/usr/share/doc/composer/copyright