tiredofit / docker-freescout

Dockerized web based help desk and shared inbox
MIT License
234 stars 94 forks source link

Leftover PHP configuration files #197

Closed RisingOpsNinja closed 2 weeks ago

RisingOpsNinja commented 3 weeks ago

Summary

In the image php-8.3-1.17.89 are leftover PHP configuration files that load modules, do not exist or have already been loaded - similar to this issue https://github.com/tiredofit/docker-freescout/issues/190

-rwxr-xr-x 1 root www-data 17 Oct 24 18:04 /etc/php83/conf.d/00_bcmath.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_bz2.ini -rwxr-xr-x 1 root www-data 19 Oct 24 18:04 /etc/php83/conf.d/00_calendar.ini -rwxr-xr-x 1 root www-data 16 Oct 24 18:04 /etc/php83/conf.d/00_ctype.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_curl.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_dba.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_dom.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_enchant.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_ffi.ini -rwxr-xr-x 1 root www-data 19 Oct 24 18:04 /etc/php83/conf.d/00_fileinfo.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_ftp.ini -rwxr-xr-x 1 root www-data 13 Oct 24 18:04 /etc/php83/conf.d/00_gd.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_gettext.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_gmp.ini -rwxr-xr-x 1 root www-data 16 Oct 24 18:04 /etc/php83/conf.d/00_iconv.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_imap.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_intl.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_ldap.ini -rwxr-xr-x 1 root www-data 19 Oct 24 18:04 /etc/php83/conf.d/00_mbstring.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_odbc.ini -rwxr-xr-x 1 root www-data 23 Oct 24 18:04 /etc/php83/conf.d/00_opcache.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_openssl.ini -rwxr-xr-x 1 root www-data 16 Oct 24 18:04 /etc/php83/conf.d/00_pcntl.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_pdo.ini -rwxr-xr-x 1 root www-data 16 Oct 24 18:04 /etc/php83/conf.d/00_pgsql.ini -rwxr-xr-x 1 root www-data 16 Oct 24 18:04 /etc/php83/conf.d/00_posix.ini -rwxr-xr-x 1 root www-data 17 Oct 24 18:04 /etc/php83/conf.d/00_pspell.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_session.ini -rwxr-xr-x 1 root www-data 16 Oct 24 18:04 /etc/php83/conf.d/00_shmop.ini -rwxr-xr-x 1 root www-data 20 Oct 24 18:04 /etc/php83/conf.d/00_simplexml.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_snmp.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_soap.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_sockets.ini -rwxr-xr-x 1 root www-data 17 Oct 24 18:04 /etc/php83/conf.d/00_sodium.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_sqlite3.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_sysvmsg.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_sysvsem.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/00_sysvshm.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/00_tidy.ini -rwxr-xr-x 1 root www-data 20 Oct 24 18:04 /etc/php83/conf.d/00_tokenizer.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_xml.ini -rwxr-xr-x 1 root www-data 20 Oct 24 18:04 /etc/php83/conf.d/00_xmlwriter.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/00_zip.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/01_exif.ini -rwxr-xr-x 1 root www-data 18 Oct 24 18:04 /etc/php83/conf.d/01_mysqlnd.ini -rwxr-xr-x 1 root www-data 20 Oct 24 18:04 /etc/php83/conf.d/01_pdo_dblib.ini -rwxr-xr-x 1 root www-data 19 Oct 24 18:04 /etc/php83/conf.d/01_pdo_odbc.ini -rwxr-xr-x 1 root www-data 20 Oct 24 18:04 /etc/php83/conf.d/01_pdo_pgsql.ini -rwxr-xr-x 1 root www-data 21 Oct 24 18:04 /etc/php83/conf.d/01_pdo_sqlite.ini -rwxr-xr-x 1 root www-data 15 Oct 24 18:04 /etc/php83/conf.d/01_phar.ini -rwxr-xr-x 1 root www-data 20 Oct 24 18:04 /etc/php83/conf.d/01_xmlreader.ini -rwxr-xr-x 1 root www-data 14 Oct 24 18:04 /etc/php83/conf.d/01_xsl.ini -rwxr-xr-x 1 root www-data 17 Oct 24 18:04 /etc/php83/conf.d/02_mysqli.ini -rwxr-xr-x 1 root www-data 20 Oct 24 18:04 /etc/php83/conf.d/02_pdo_mysql.ini -rwxr-xr-x 1 root www-data 20 Oct 19 20:14 /etc/php83/conf.d/20_memcached.ini -rwxr-xr-x 1 root www-data 16 Oct 4 22:02 /etc/php83/conf.d/20_redis.ini -rwxr-xr-x 1 root www-data 17 Oct 22 17:50 /etc/php83/conf.d/50_swoole.ini -rwxr-xr-x 1 root www-data 15 Oct 8 21:18 /etc/php83/conf.d/70_yaml.ini

Steps to reproduce

  1. Pull image and start container
  2. Execute php -v or look in log file /www/logs/freescout/fetch-emails.log

What is the expected correct behavior?

Only load necessary installed modules

Relevant logs and/or screenshots

[tiredofit/freescout:1.17.89 08:30:47 ~] $ php -v Cannot load Zend OPcache - it was already loaded PHP Warning: Module "bcmath" is already loaded in Unknown on line 0 PHP Warning: Module "bz2" is already loaded in Unknown on line 0 PHP Warning: Module "ctype" is already loaded in Unknown on line 0 PHP Warning: Module "curl" is already loaded in Unknown on line 0 PHP Warning: Module "dom" is already loaded in Unknown on line 0 PHP Warning: Module "fileinfo" is already loaded in Unknown on line 0 PHP Warning: Module "gd" is already loaded in Unknown on line 0 PHP Warning: Module "iconv" is already loaded in Unknown on line 0 PHP Warning: Module "imap" is already loaded in Unknown on line 0 PHP Warning: Module "intl" is already loaded in Unknown on line 0 PHP Warning: Module "ldap" is already loaded in Unknown on line 0 PHP Warning: Module "mbstring" is already loaded in Unknown on line 0 PHP Warning: Module "openssl" is already loaded in Unknown on line 0 PHP Warning: Module "pcntl" is already loaded in Unknown on line 0 PHP Warning: Module "PDO" is already loaded in Unknown on line 0 PHP Warning: Module "pgsql" is already loaded in Unknown on line 0 PHP Warning: Module "session" is already loaded in Unknown on line 0 PHP Warning: Module "SimpleXML" is already loaded in Unknown on line 0 PHP Warning: Module "tokenizer" is already loaded in Unknown on line 0 PHP Warning: Module "xml" is already loaded in Unknown on line 0 PHP Warning: Module "xmlwriter" is already loaded in Unknown on line 0 PHP Warning: Module "zip" is already loaded in Unknown on line 0 PHP Warning: Module "exif" is already loaded in Unknown on line 0 PHP Warning: Module "mysqlnd" is already loaded in Unknown on line 0 PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0 PHP Warning: Module "Phar" is already loaded in Unknown on line 0 PHP Warning: Module "xmlreader" is already loaded in Unknown on line 0 PHP Warning: Module "mysqli" is already loaded in Unknown on line 0 PHP Warning: Module "pdo_mysql" is already loaded in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'memcached' (tried: /usr/lib/php83/modules/memcached (Error loading shared library /usr/lib/php83/modules/memcached: No such file or directory), /usr/lib/php83/modules/memcached.so (Error relocating /usr/lib/php83/modules/memcached.so: php_msgpack_serialize: symbol not found)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'redis' (tried: /usr/lib/php83/modules/redis (Error loading shared library /usr/lib/php83/modules/redis: No such file or directory), /usr/lib/php83/modules/redis.so (Error relocating /usr/lib/php83/modules/redis.so: php_msgpack_unserialize: symbol not found)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'swoole' (tried: /usr/lib/php83/modules/swoole (Error loading shared library /usr/lib/php83/modules/swoole: No such file or directory), /usr/lib/php83/modules/swoole.so (Error relocating /usr/lib/php83/modules/swoole.so: BrotliEncoderMaxCompressedSize: symbol not found)) in Unknown on line 0 PHP 8.3.13 (cli) (built: Oct 24 2024 16:04:13) (NTS) Copyright (c) The PHP Group Zend Engine v4.3.13, Copyright (c) Zend Technologies with Zend OPcache v8.3.13, Copyright (c), by Zend Technologies

Environment

RisingOpsNinja commented 2 weeks ago

The problem is fixed in version 1.17.90

Changed

  • Add some PHP Extension checks to avoid any warnings

Thanks!