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
Did I do the right thing? If so, i think it should be fixed in the docker image?
This was the output of
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, /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini, /usr/local/etc/php/conf.d/docker-php-ext-zip.ini, /usr/local/etc/php/conf.d/ext-imagick.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 = imagick.so
and here is
root@0213d419afe0:/# cat /usr/local/etc/php/conf.d/ext-imagick.ini extension=imagick.so
Apparently, this is no good because imagick.so is being loaded twice …