Zum Inhalt der Seite gehen


Install failed with Composer\Downloader\TransportException


!Friendica Support
I am trying to do a fresh install of Friendica 2023.04.

When I visit the home url, I get:

Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.

So, I ssh into the server and run it, but I get the following error:

$ bin/composer.phar --no-dev install
You are using Composer 1 which is deprecated. You should upgrade to Composer 2, see https://blog.packagist.com/deprecating-composer-1-support/
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 35 installs, 0 updates, 0 removals
- Installing npm-asset/cropperjs (1.2.2): Downloading (failed)
Downloading (failed)
Downloading (failed)

[Composer\Downloader\TransportException]
The "https://registry.npmjs.org/cropperjs/-/cropperjs-1.2.2.tgz" file could not be downloaded: allow_url_fopen must be enabled in php.ini (https:// wrapper is disabled in the server con
figuration by allow_url_fopen=0
Failed to open stream: no suitable wrapper could be found)

phpinfo() lists allow_url_fopen as On

What can I do to fix this?

I'm on a CPanel managed server and don't have root rights. Linux Kernel version is "Linux 3.10.0-1160.88.1.el7.x86_64 x86_64" but I have no idea which distro. Doesn't seem to be Debian-based though.

PHP 8.1 (ea-php81)

Manually creating the config/local.config.php of course also didn't help, because that won't create the vendor path.

Friendica Support hat dies geteilt.

Unbekannter Ursprungsbeitrag

Roland Häder
@Michael Vogel @GunChleoc Check it with $ php -i | grep "php.ini" and you know it for 100%.

Friendica Support hat dies geteilt.

Als Antwort auf Roland Häder

Thanks, that seems to be it. I have asked my webhost to change it, since I'm not a sudoer.

Friendica Support hat dies geteilt.