install.php reports missing php5 dependency

Bug #1640132 reported by Wouter Hanegraaff
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Server
New
Undecided
Unassigned
ocsinventory-server (Ubuntu)
Fix Released
High
Unassigned
Xenial
New
High
Unassigned
Yakkety
New
High
Unassigned
Zesty
Fix Released
High
Unassigned

Bug Description

After a minimal ubuntu server installation, install ocsinventory-server and ocsinventory-reports.
When installation is completed, open http://your-ocsserver.example.com/ocsreports/

The following error is displayed:
"ERROR: MySQL for PHP is not properly installed.
Try installing MySQL for php package (Debian: php5-mysql)"

However, php5-mysql does not exist in xenial. Looking into the package, I found it uses mysql_connect, a function that has been deprecated for many years and was removed in php7.0. See http://php.net/manual/en/function.mysql-connect.php

This makes the package unusable.

Revision history for this message
Gilles Dubois (gillesdubois18) wrote :

Hi,

Please read this first : https://launchpad.net/ocsinventory/+announcement/13550

Your problem has been fixed on the master branch and will be available in the next release.

Master branch link :
https://github.com/OCSInventory-NG/OCSInventory-ocsreports

Regards,
Gilles Dubois.

Revision history for this message
Logan Rosen (logan) wrote :

This bug was fixed in the package ocsinventory-server - 2.2+dfsg-0.1

---------------
ocsinventory-server (2.2+dfsg-0.1) unstable; urgency=low

  [ Jean-Michel Vourgère ]
  * New upstream release: (Closes: #822159)
    - No longer oversatinizing passwords. (Closes: #746432)
    - Updated dependencies requirements, including for PHP7. (Closes: #821539)
    - d/copyright: Strip upstream source from ieee-data, libjs-bootstrap,
      libjs-elycharts, libjs-jquery, libjs-jquery-datatables, libjs-jquery-ui,
      libjs-jquery-migrate-1, libjs-raphael, php-cas, and phpqrcode. Added
      +dfsg suffix to d/watch. New patch use_system_libraries.
    - Drop patch 03_oui_format, applied uptream.
    - Refreshed apache2 conf files from upstream. New lintian overrides.
    - reports.post(inst|rm): New directory for logs.
  * New d/patch/mainsection_dir cherry picked from upstream master.
  * Updated d/watch after upstream move to github.
  * New patch apache_conf_name to fix the help.
  * Added alternatives to libapache2-mod-php dependency. (Closes: #746429)
  * Added alternative to mysql-client dependency for MariaDB. (Closes: #732899)
  * Dropped unused lintian overrides.
  * d/rules: Tuned .pl permissions, no longer cleaning main_menu.xml.bak.
  * Add d/README.source to work around uscan crash.
  * Bumped policy version to 3.9.8: No change required.
  * Switched Vcs-Git: to a secure uri scheme.
  * New lintian override for datetimepicker.js source with long lines.
  * Updated mysql packages names and alternatives (Closes: #848444, #848478)

  [ Ondřej Surý ]
  * Non-maintainer upload to finally get rid of php5 in unstable

 -- Ondřej Surý <email address hidden> Mon, 09 Jan 2017 11:52:00 +0100

Changed in ocsinventory-server (Ubuntu):
status: New → Fix Released
Changed in ocsinventory-server (Ubuntu Xenial):
importance: Undecided → High
Changed in ocsinventory-server (Ubuntu Yakkety):
importance: Undecided → High
Changed in ocsinventory-server (Ubuntu Zesty):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.