Source: fusiondirectory
Severity: grave
Justification: renders package unusable

Dear Maintainer,

I installed fusiondirectory and tried to configure it through its web
interface. At the third step ('Installation check'), a problem is
detected with imagick support :

  Checking for imagick support    Error
  Install and activate the imagick PHP module
  FusionDirectory will NOT run without fixing this.
  
That renders fusiondirectory unusable to me as I do not know how to
solve this. (I do not have the problem mentionned in bug #931959 as I
installed php-xml manually.)

imagick support is tested by fusiondirectory in
/usr/share/fusiondirectory/setup/class_setupStepChecks.inc, line 137 :

    $R = class_exists('Imagick', FALSE);
    
I wrote the following php code and put it in /var/www/html/atest.php :

----------------------------------------------------------------------
<html><head><title>A simple test</title></head>
  <body>
  <?php
      $R = class_exists('Imagick', FALSE);
      if ($R) {
          echo "Imagick detected";
      } else {
          echo "Imagick not detected";
      }
?>
</body></html>
----------------------------------------------------------------------

When I run it in a shell ('php7.3 /var/www/html/atest.php'), imagick
is detected (output containing 'Imagick detected') whereas when I run
it through apache (opening a browser on
https://myservername/atest.php), it is not (web page containing
'Imagick not detected')

So something must be wrong with the configuration of imagick in
fusiondirectory (fusiondirectory should have enabled imagick when php
is run through apache) and/or with the php-imagick package.

Yours,

Judicael Courant.

-- System Information:
Debian Release: 10.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: arm64 (aarch64)

Kernel: Linux 4.9.93-mainline-rev1 (SMP w/6 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Possibly relevant packages:
ii  apache2                            2.4.38-3                               
arm64        Apache HTTP Server
ii  apache2-bin                        2.4.38-3                               
arm64        Apache HTTP Server (modules and other binary files)
ii  apache2-data                       2.4.38-3                               
all          Apache HTTP Server (common files)
ii  apache2-utils                      2.4.38-3                               
arm64        Apache HTTP Server (utility programs for web servers)
ii  fusiondirectory                    1.2.3-4                                
all          Web Based LDAP Administration Program
ii  fusiondirectory-schema             1.2.3-4                                
all          LDAP schema for FusionDirectory
ii  fusiondirectory-smarty3-acl-render 1.2.3-4                                
all          Provide FusionDirectory ACL based rendering for Smarty3
ii  libapache2-mod-php                 2:7.3+69                               
all          server-side, HTML-embedded scripting language (Apache 2 module) 
(default)
ii  libapache2-mod-php                 2:7.3+69                               
all          server-side, HTML-embedded scripting language (Apache 2 module) 
(default)
ii  libapache2-mod-php7.3              7.3.4-2                                
arm64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  libapache2-mod-php7.3              7.3.4-2                                
arm64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  php                                2:7.3+69                               
all          server-side, HTML-embedded scripting language (default)
ii  php7.3                             7.3.4-2                                
all          server-side, HTML-embedded scripting language (metapackage)
ii  php7.3-cli                         7.3.4-2                                
arm64        command-line interpreter for the PHP scripting language
ii  php7.3-common                      7.3.4-2                                
arm64        documentation, examples and common module for PHP
ii  php7.3-curl                        7.3.4-2                                
arm64        CURL module for PHP
ii  php7.3-gd                          7.3.4-2                                
arm64        GD module for PHP
ii  php7.3-imap                        7.3.4-2                                
arm64        IMAP module for PHP
ii  php7.3-json                        7.3.4-2                                
arm64        JSON module for PHP
ii  php7.3-ldap                        7.3.4-2                                
arm64        LDAP module for PHP
ii  php7.3-mbstring                    7.3.4-2                                
arm64        MBSTRING module for PHP
ii  php7.3-opcache                     7.3.4-2                                
arm64        Zend OpCache module for PHP
ii  php7.3-readline                    7.3.4-2                                
arm64        readline module for PHP
ii  php7.3-recode                      7.3.4-2                                
arm64        recode module for PHP
ii  php7.3-xml                         7.3.4-2                                
arm64        DOM, SimpleXML, WDDX, XML, and XSL module for PHP
ii  php-cas                            1.3.6-1                                
all          Central Authentication Service client library in php
ii  php-cli                            2:7.3+69                               
all          command-line interpreter for the PHP scripting language (default)
ii  php-common                         2:69                                   
all          Common files for PHP packages
ii  php-curl                           2:7.3+69                               
all          CURL module for PHP [default]
ii  php-fpdf                           3:1.8.1.dfsg-2                         
all          PHP class to generate PDF files
ii  php-gd                             2:7.3+69                               
all          GD module for PHP [default]
ii  php-imagick                        3.4.3-4.1                              
arm64        Provides a wrapper to the ImageMagick library
ii  php-imap                           2:7.3+69                               
all          IMAP module for PHP [default]
ii  php-ldap                           2:7.3+69                               
all          LDAP module for PHP [default]
ii  php-mbstring                       2:7.3+69                               
all          MBSTRING module for PHP [default]
ii  php-recode                         2:7.3+69                               
all          recode module for PHP [default]
ii  php-xml                            2:7.3+69                               
all          DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
ii  python3-certbot-apache             0.31.0-1                               
all          Apache plugin for Certbot
ii  python-certbot-apache-doc          0.31.0-1                               
all          Apache plugin documentation for Certbot

Reply via email to