Ad Widget

Collapse

Setup.php does not respond

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gferradas
    Junior Member
    • Jan 2023
    • 24

    #1

    Setup.php does not respond

    Hi im trying to install zabbix 6.0 on a RHEL 9 but at the time to check pre requisites the server stops responding and the logs in /var/log/httpd/error_log says something like this:
    Code:
     AH01071: Got error 'PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/validate.inc.php(107) : eval()'d code on line 1PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/validate.inc.php on line 334PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 521PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 522PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 523PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 521PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 522PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 523PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 521PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 522PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 523PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 521PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 522PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 523PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 521PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 522PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 523PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 521PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 522PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 523PHP message: PHP Warning:  preg_match(): Compilation failed: unrecognised compile-time option bit(s) at offset 0 in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 521PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 522PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/validators/CApiInputValidator.php on line 523PHP message: PHP Fatal error:  Uncaught APIException: Invalid parameter "/output": value must be empty or one of "", "", "", "", "", "". in /usr/share/zabbix/include/classes/api/CApiService.php:887\nStack trace:\n#0 /usr/share/zabbix/include/classes/api/services/CSettings.php(108): CApiService::exception()\n#1 /usr/share/zabbix/include/classes/helpers/CSettingsHelper.php(104): CSettings->getGlobal()\n#2 /usr/share/zabbix/include/classes/helpers/CSettingsHelper.php(127): CSettingsHelper::loadParams()\n#3 /usr/share/zabbix/include/page_header.php(86): CSettingsHelper::getGlobal()\n#4 /usr/share/zabbix/include/validate.inc.php(371): require_once('...')\n#5 /usr/share/zabbix/include/validate.inc.php(431): invalid_url()\n#6 /usr/share/zabbix/setup.php(72): check_fields()\n#7 {main}\n  thrown in /usr/share/zabbix/include/classes/api/CApiService.php on line 887PHP message: PHP Warning:  Undefined array key "file" in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381PHP message: PHP Warning:  Undefined array key "line" in /usr/share/zabbix/include/classes/debug/CProfiler.php on line 381PHP message: PHP Warning:  Trying to access array offset on value of type null in /usr/share/zabbix/include/classes/core/CCookieSession.php on line 194'
    I followed the steps in https://www.zabbix.com/download?zabb...ysql&ws=apache if someone can help me i would appreciate it
    Last edited by gferradas; 03-01-2023, 22:58.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    What version of PHP are you using? The first few releases in the 6.0.x series required PHP 7.2.5, 7.3.x, or 7.4.x, but not PHP 8.0. Recent Zabbix 6.0.x releases (6.0.6 and later, I think, check the documentation) now support PHP 8.0 and possibly PHP 8.1.

    Comment

    • gferradas
      Junior Member
      • Jan 2023
      • 24

      #3
      Originally posted by tim.mooney
      What version of PHP are you using? The first few releases in the 6.0.x series required PHP 7.2.5, 7.3.x, or 7.4.x, but not PHP 8.0. Recent Zabbix 6.0.x releases (6.0.6 and later, I think, check the documentation) now support PHP 8.0 and possibly PHP 8.1.
      It seems like zabbix installed php-fpm 8.0 when i installed the packages how do i downgrade it to 7.2?

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        Requirements page (https://www.zabbix.com/documentation...n/requirements) says:

        PHP 7.2.5 or later,
        (since Zabbix 6.0.6) 8.0, 8.1
        Markku

        Comment


        • gferradas
          gferradas commented
          Editing a comment
          yeah but later in 6.0 is 7.4 or is it up to php 8.0? because if 6.0 supports php 8.0 the problem still persists
      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #5
        It means: with Zabbix 6.0.0 - 6.0.5 you can use 7.2.5 or newer but 7.x series only, and with Zabbix 6.0.6 and later you can use 7.2.5 or newer up to and including 8.1.x.

        Markku

        Comment


        • gferradas
          gferradas commented
          Editing a comment
          ok thanks i im gonna reinstall zabbix from scratch but use 7.2.5 instead if the problem still persists i let you know
      Working...