Bug#834063: gosa: GOsa setup complains about missing php mysql module even if php-mysql is installed

Wolfgang Schweer wschweer at arcor.de
Thu Aug 11 21:53:58 UTC 2016


On Thu, Aug 11, 2016 at 07:55:21PM +0200, Andreas B. Mundt wrote:
> I tried to update the GOsa configuration in Debian-LAN and started the 
> web interface without '/etc/gosa.conf' in place.  The installation 
> check complains about missing mysql support and recommends to install 
> and activate the MySQL PHP module. However, after installing all 
> suspicious packages, for example php-mysql, the issue remains and the 
> setup process can't be continued and finished.

Hi Andreas,

looks like a misleading error message.
 
Most probably this is due to the PHP5 -> PHP 7.0 transition. As far as I 
was able to find out 'mysql_' has been deprecated as of PHP 5.5 and has 
been dropped in PHP 7.0. Apparently it has slipped our attention while 
trying to cope with the migration.

The fix might be as simple as below, but maybe it requires more 
investigation. The related file is located in /usr/share/gosa/setup/.

--- a/class_setupStep_Checks.inc	2016-08-11 23:38:41.461895899 +0200
+++ b/class_setupStep_Checks.inc	2016-08-11 23:37:37.000000000 +0200
@@ -138,7 +138,7 @@
     $N = msgPool::checkingFor(_("MySQL"));
     $D = _("GOsa requires this module to communicate with several supported databases.");
     $S = msgPool::installPhpModule("MySQL");
-    $R = is_callable("mysql_query");
+    $R = is_callable("mysqli_query");
     $M = True;
     $this->basic_checks[] = array("NAME" => $N , "DESC" => $D , "RESULT" => $R , "SOLUTION" => $S , "MUST" => $M );
 
Please test if this patch works.

Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-edu-pkg-team/attachments/20160811/d97623b8/attachment.sig>


More information about the Debian-edu-pkg-team mailing list