Hello when i try to use composer from aaPanel i get the following errors:
Checked directory /etc/pki/tls/certs/ca-bundle.crt does not exist or it is not a directory.
Checked CA file /etc/ssl/certs/ca-certificates.crt: valid
Executing command (/www/wwwroot/path/to/website): 'git' 'branch' '-a' '--no-color' '--no-abbrev' '-v'
Failed to initialize global composer: Composer could not find the config file: /home/www/.config/composer/composer.json
Reading /www/wwwroot/path/to/website/vendor/composer/installed.json
Reading ./composer.lock (/www/wwwroot/path/to/website/composer.lock)
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Reading ./composer.lock (/www/wwwroot/path/to/website/composer.lock)
Built pool.
Generating rules
Resolving dependencies through SAT
Dependency resolution completed in 0.000 seconds
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- league/flysystem-local is locked to version 3.16.0 and an update of this package was not requested.
- league/flysystem-local 3.16.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 2
- league/mime-type-detection is locked to version 1.13.0 and an update of this package was not requested.
- league/mime-type-detection 1.13.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
Problem 3
- league/flysystem-local 3.16.0 requires ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- league/flysystem 3.16.0 requires league/flysystem-local ^3.0.0 -> satisfiable by league/flysystem-local[3.16.0].
- league/flysystem is locked to version 3.16.0 and an update of this package was not requested.
But the thing is when i try to run composer via this command in ssh
sudo -u www composer install
it works perfectly without any issues.
also fileinfo extension is installed and working.
here is how i run composer from aaPanel: