Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ftp extension missing in image -> chialab/php-dev:8.2 #121

Open
vetjun opened this issue Feb 1, 2024 · 1 comment
Open

Ftp extension missing in image -> chialab/php-dev:8.2 #121

vetjun opened this issue Feb 1, 2024 · 1 comment

Comments

@vetjun
Copy link

vetjun commented Feb 1, 2024

Hi, we use chialab/php-dev:8.2 image in our development environments for unittest pipelines.
our composer json like
.....
"ext-json": "",
"ext-ftp": "
",
"ext-curl": "",
"ext-pdo": "
",
"ext-soap": "",
"ext-intl": "
",
"ext-simplexml": "",
"ext-iconv": "
",
"ext-zip": "*",
....
When pipeline is started, it gives this error ->
"$ php composer.phar install
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- Root composer.json requires PHP extension ext-ftp * but it is missing from your system. Install or enable PHP's ftp extension.
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/conf.d/docker-php-ext-amqp.ini
- /usr/local/etc/php/conf.d/docker-php-ext-bcmath.ini
- /usr/local/etc/php/conf.d/docker-php-ext-bz2.ini
- /usr/local/etc/php/conf.d/docker-php-ext-calendar.ini
- /usr/local/etc/php/conf.d/docker-php-ext-exif.ini
- /usr/local/etc/php/conf.d/docker-php-ext-gd.ini
- /usr/local/etc/php/conf.d/docker-php-ext-gettext.ini
- /usr/local/etc/php/conf.d/docker-php-ext-imagick.ini
- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-ldap.ini
- /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini
- /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_mysql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-pgsql.ini
- /usr/local/etc/php/conf.d/docker-php-ext-redis.ini
- /usr/local/etc/php/conf.d/docker-php-ext-soap.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sockets.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- /usr/local/etc/php/conf.d/docker-php-ext-xsl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
- /usr/local/etc/php/conf.d/xx-php-ext-event.ini
- /usr/local/etc/php/conf.d/xx-php-ext-memcached.ini
You can also run php --ini in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-ftp to temporarily ignore these required extensions.
ERROR: Job failed: exit code 1 "

2 days ago some changes committed and I can see commits about FTP.
Can it affect this issue?

@le0m
Copy link
Member

le0m commented Feb 6, 2024

This image does not come with FTP extension, you should be able to install it running install-php-extensions ftp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants