Issue with cron/achiving/imagick on wpt server docker container

Hi all -
I’ve been troubleshooting my WPT server this morning as it had run out of disk space and I found that my cron jobs/archiving were not working. Note: this server is running in docker using the webpagetest/server:release image from 5 weeks ago (from docker hub).

On closer inspection, i noticed a lot of “PHP Warning: Module ‘imagick’ already loaded in Unknown on line 0” messages in /var/log/supervisor/cron_stdout.log … this ultimately lead me to remove the file /usr/local/etc/php/conf.d/ext-imagick.ini since imagick is already loaded by /usr/local/etc/php/php.ini

Did I do the right thing? If so, i think it should be fixed in the docker image?


This was the output of php --ini:

root@0213d419afe0:/# /usr/local/bin/php --ini
PHP Warning:  Module 'imagick' already loaded in Unknown on line 0
Configuration File (php.ini) Path: /usr/local/etc/php
Loaded Configuration File:         /usr/local/etc/php/php.ini
Scan for additional .ini files in: /usr/local/etc/php/conf.d
Additional .ini files parsed:      /usr/local/etc/php/conf.d/docker-php-ext-gd.ini,

Here is /usr/local/etc/php/php.ini:

root@0213d419afe0:/# cat /usr/local/etc/php/php.ini
upload_max_filesize = 20M
post_max_size = 20M
memory_limit = 512M
display_errors = false
extension =

and here is /usr/local/etc/php/conf.d/ext-imagick.ini:

root@0213d419afe0:/# cat /usr/local/etc/php/conf.d/ext-imagick.ini

Apparently, this is no good because is being loaded twice …

1 Like