-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fpm-alpine php 8.2 is broken #839
Comments
Sorry for the delay 😬 Is this still applicable? I can't seem to reproduce. 😕 |
(A minimal reproducer would be useful 🙈) |
Where should I browse in the UI to see that? I've just deployed |
$ docker exec -i wordpress_wordpress_1 php -i | grep mysqli
/usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini,
mysqli
mysqli.allow_local_infile => Off => Off
mysqli.allow_persistent => On => On
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.local_infile_directory => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
mysqli.rollback_on_cached_plink => Off => Off
API Extensions => mysqli |
It seems that the image itself doesn't contain PDO_MYSQL extension at all: https://github.com/docker-library/wordpress/blob/master/Dockerfile.template#L76-L82, thus breaking WooCommerce using this image. However, as a workaround, you can override the base image: FROM wordpress:6-php8.3-fpm-alpine AS wp-base
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN install-php-extensions pdo pdo_mysql For simplicity, just put it where you have the And inside your build:
dockerfile: Dockerfile.wordpress
... |
Correct; that is intentional: https://hub.docker.com/_/wordpress#:~:text=This%20image%20does%20not%20provide%20any%20additional%20PHP%20extensions%20or%20other%20libraries%2C%20even%20if%20they%20are%20required%20by%20popular%20plugins%20(e.g.%20it%20cannot%20send%20e%2Dmails).
|
Closing, since any extra PHP extensions needed by WordPress plugins must be installed by the user. |
On a fresh install of provided fpm-alpine php 8.2, visiting the site says
The text was updated successfully, but these errors were encountered: