From 9af1680e1589cac3013d46c45b40317bf3f59563 Mon Sep 17 00:00:00 2001 From: daniel Date: Wed, 30 Jan 2019 16:57:07 +0100 Subject: [PATCH] fixed error php7 info install and RPM Former-commit-id: 4c38ee93e01d2ff88bb0d3dc563cf7bbbbcd9946 --- pandora_console/install.php | 3 +-- pandora_console/pandora_console.redhat.spec | 2 +- pandora_console/pandora_console.spec | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pandora_console/install.php b/pandora_console/install.php index 18a2a6d9cb..493cc357d0 100644 --- a/pandora_console/install.php +++ b/pandora_console/install.php @@ -487,7 +487,7 @@ function install_step2() { echo "

Checking software dependencies

"; echo ""; $res = 0; - $res += check_variable(phpversion(),"5.2","PHP version >= 5.2",1); + $res += check_variable(phpversion(),"7.0","PHP version >= 7.0",1); $res += check_extension("gd","PHP GD extension"); $res += check_extension("ldap","PHP LDAP extension"); $res += check_extension("snmp","PHP SNMP extension"); @@ -518,7 +518,6 @@ function install_step2() { font-size: 8.5pt;margin-top: 2px; font-weight: bolder;'>DB Engines"; echo ""; - check_extension("mysql", "PHP MySQL extension"); check_extension("mysqli", "PHP MySQL(mysqli) extension"); echo "
"; echo "
"; diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec index 3ece0b1383..f8cca88d0a 100644 --- a/pandora_console/pandora_console.redhat.spec +++ b/pandora_console/pandora_console.redhat.spec @@ -26,7 +26,7 @@ BuildRoot: %{_tmppath}/%{name} BuildArch: noarch AutoReq: 0 Requires: %{httpd_name} >= 2.0.0 -Requires: mod_php >= 5.2.0 +Requires: mod_php >= 7.0 Requires: php-gd, php-ldap, php-snmp, php-session, php-gettext Requires: php-mysqlnd, php-mbstring, php-zip, php-zlib, php-curl Requires: xorg-x11-fonts-75dpi, xorg-x11-fonts-misc, php-pecl-zip diff --git a/pandora_console/pandora_console.spec b/pandora_console/pandora_console.spec index 91dcf164e1..7e3d73910f 100644 --- a/pandora_console/pandora_console.spec +++ b/pandora_console/pandora_console.spec @@ -29,7 +29,7 @@ BuildArch: noarch AutoReq: 0 Requires: apache2 Requires: apache2-mod_php7 -Requires: php >= 4.3.0 +Requires: php >= 7.0 Requires: php-gd, php-snmp, php-json, php-gettext Requires: php-mysqlnd, php-ldap, php-mbstring, php Requires: graphviz, xorg-x11-fonts-core, graphviz-gd