Bug 205181

Summary: net-mgmt/icingaweb2: PHP Warning: PHP Startup: Unable to load dynamic library
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Lars Engels <lme>
Status: Closed FIXED    
Severity: Affects Many People CC: lme
Priority: --- Flags: bugzilla: maintainer-feedback? (lme)
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2015-12-10 09:36:47 UTC
I try to initialise icingaweb2 and therefore, the follwoing command prerequisite to the installation/configuration of the webinterface fails:


[...]
root@host:/usr/local/etc # /usr/local/www/icingaweb2/bin/icingacli setup config directory --group www --config /usr/local/etc/icinga2web ;
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226-zts/memcache.so' - /usr/local/lib/php/20131226-zts/memcache.so: Undefined symbol "php_session_create_id" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226-zts/memcached.so' - /usr/local/lib/php/20131226-zts/memcached.so: Undefined symbol "ps_globals_id" in Unknown on line 0
ERROR: Icinga\Exception\IcingaException in /usr/local/www/icingaweb2/library/Icinga/Cli/Command.php:130 with message: Can't change the group of /usr/local/etc/icinga2web to www: chgrp(): Unable to find gid for www


I consider this a newly introduced bug since I had already installed the port net-mgmt/icingaweb2 on that sepcific server. The group 'www' is also present on that system.

The error above is suggested to be fixed by recompiling php56-xxx ports, so I did recompilation/reinstallation all of them including these ports, no matter whether they are requisite or not to the port:

===>>> The following actions were performed:
        Re-installation of libmemcached-1.0.18_2
        Re-installation of pecl-imagick-3.1.2_2
        Re-installation of pecl-memcache-3.0.8
        Re-installation of pecl-memcached-2.2.0_3
Comment 1 Lars Engels freebsd_committer freebsd_triage 2016-04-22 14:28:10 UTC
This error is due to a mismatch of php versions. Usually fixed by "pkg upgrade -f php5-*"