Applicable to:
- Plesk for Linux
Symptoms
-
On a Plesk server Composer was added to the chroot environment.
-
Execution of composer from chroot environment fails with the following error:
CONFIG_TEXT: curl error 77 while downloading https://repo.packagist.org/packages.json: Problem with the SSL CA cert (path? access rights?)
Cause
Certificates are missing in the chroot environment.
Resolution
1. Connect to a Plesk server via SSH.
2. Download the configuration script from the article to add programs to a chrooted shell environment template. Use two commands from step 2 of the 'Answer' section of the article.
3. Execute two commands below to add the required files to chroot template:
# cp -a /etc/pki /var/www/vhosts/chroot/etc/
# cp -a /etc/ssl /var/www/vhosts/chroot/etc/
4. Apply the chroot template to the domain:
# ./update_chroot.sh --apply all
Comments
2 comments
Followed these steps but still getting these errors:
Now trying to download from source
Failed to download composer/xdebug-handler from dist: curl error 77 while downloading https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c: Problem with the SSL CA cert (path? access rights?)
Hello Webhosting,
I would recommend applying the solution from the following article and after that reapply the solution from the current article.
If the issue still persists after that, consider submitting a request to Plesk Support.
Please sign in to leave a comment.