Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.6 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Apache errors during instalation

Hi,

I'm trying to inslatll OCS 2,5 under Ubuntu 18.04.02. After following all the steps and installing all dependencies, I open http://localhost/ocsreports and get a blnak page

This is my apache error.log

Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
[Fri Mar 29 09:03:49.334714 2019] [mpm_prefork:notice] [pid 1789] AH00163: Apache/2.4.29 (Ubuntu) mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
[Fri Mar 29 09:03:49.334745 2019] [core:notice] [pid 1789] AH00094: Command line: '/usr/sbin/apache2'
Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @part_query[...] better written as $part_query[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
Scalar value @args[...] better written as $args[...] at /usr/local/share/perl/5.26.1/Apache/Ocsinventory/Interface/AssetCategory.pm line 53.
[Fri Mar 29 10:47:28.693852 2019] [mpm_prefork:notice] [pid 1786] AH00163: Apache/2.4.29 (Ubuntu) mod_perl/2.0.10 Perl/v5.26.1 configured -- resuming normal operations
[Fri Mar 29 10:47:28.693894 2019] [core:notice] [pid 1786] AH00094: Command line: '/usr/sbin/apache2'
[Fri Mar 29 11:00:12.295661 2019] [php7:error] [pid 1789] [client ::1:48070] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:66\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(84): generate_secure_sql('select NAME,IVA...', Array)\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure('select NAME,IVA...', NULL, Array)\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(315): look_config_default_values('CUSTOM_THEME')\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header(true)\n#4 /usr/share/ocsinventory-reports/ocsreports/require/header.php(83): require('/usr/share/ocsi...')\n#5 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#6 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 66
[Fri Mar 29 11:02:28.965797 2019] [php7:error] [pid 1790] [client ::1:48112] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:66\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(84): generate_secure_sql('select NAME,IVA...', Array)\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure('select NAME,IVA...', NULL, Array)\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(315): look_config_default_values('CUSTOM_THEME')\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header(true)\n#4 /usr/share/ocsinventory-reports/ocsreports/require/header.php(83): require('/usr/share/ocsi...')\n#5 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#6 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 66
[Fri Mar 29 11:02:31.556254 2019] [php7:error] [pid 1788] [client ::1:48114] PHP Fatal error:  Uncaught Error: Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:66\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(84): generate_secure_sql('select NAME,IVA...', Array)\n#1 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(37): mysql2_query_secure('select NAME,IVA...', NULL, Array)\n#2 /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php(315): look_config_default_values('CUSTOM_THEME')\n#3 /usr/share/ocsinventory-reports/ocsreports/install.php(30): html_header(true)\n#4 /usr/share/ocsinventory-reports/ocsreports/require/header.php(83): require('/usr/share/ocsi...')\n#5 /usr/share/ocsinventory-reports/ocsreports/index.php(44): require('/usr/share/ocsi...')\n#6 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 66

Any idea? Thanks and best regards

in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
Hi,

Which version of php and have you installed all php modules needed by ocs reports ?

Best regards

Frank
by (70.3k points)
 
Powered by Question2Answer
...