I’m trying to run a WordPress site inside the official WordPress Docker container.

The WordPress site that I’ve built relies on using exif_read_data to extract meta information from photos. I understand that PHP needs to be configured with the --with-exif flag for this to work.

This is the Configure Command section of ‘s output when I’m running my site from the Docker container:

'./configure' '--with-config-file-path=/usr/local/etc/php' '--with-config-file-scan-dir=/usr/local/etc/php/conf.d' '--disable-cgi' '--enable-ftp' '--enable-mbstring' '--enable-mysqlnd' '--with-curl' '--with-libedit' '--with-openssl' '--with-zlib' '--with-apxs2' 'CFLAGS=-fstack-protector-strong '-fpic' '-fpie' '-O2'' 'LDFLAGS=-Wl,-O1 '-Wl,--hash-style=both' '-pie'' 'CPPFLAGS=-fstack-protector-strong '-fpic' '-fpie' '-O2''

How can I reconfigure PHP to have EXIF support enabled? I’d like to keep using the official WordPress Docker container because it seems to be working really well otherwise.

My docker-compose.yml is here: https://github.com/quis/quis.cc/blob/d89efebefc20f688afbd70f8d7a58e35380581e9/docker-compose.yml

Read more here: Enable EXIF support when running WordPress Docker container


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: