Curl: (23) Failure writing output to destination

I need to install composer on the server. To install it, follow the documentation on how to install composer on Debian 12, which says the following instructions:

curl -sS https://getcomposer.org/installer -o composer-setup.php

When running, it gives the following error: curl: (23) Failure writing output to destination

Investigating the error, I found the following:
After a very long research I found a useful hint.
Can’t write to a hidden path using Curl
Basically snap curl is useless. Uninstall it properly. Get the proper apt curl, and everything works like a charm.

The question is: Can I uninstall Curl in Hestia and reinstall it, as indicated there?

v-add-user-composer user

Will install composer in /home/user/.composer/composer

1 Like

Thanks, I logged in as root and installed as recommended: v-add-user-composer user.
Then I went to /home/ususrio/web/usuario.cl/public_html and typed composer.
-bash: composer: command not found

use the full path /home/user/.composer/composer --version

Gracias:

An error occurred with the dependencies and the php version, when using composer update. How can I install the latest version of php?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.