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

Attachment: signature.asc
Description: Digital signature

Reply via email to