Ad Widget

Collapse

proxy_fcgi:error with zabbix 6.0 LTS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • techie879
    Junior Member
    • Jun 2020
    • 10

    #1

    proxy_fcgi:error with zabbix 6.0 LTS

    Hello,

    I just upgraded zabbix from 5.0 to 6.0 LTS.


    OS: Rocky Linux 8.8
    PHP : 7.2.24
    Zabbix RPMs installed:

    zabbix-sql-scripts-6.0.22-release1.el8.noarch
    zabbix-web-mysql-6.0.22-release1.el8.noarch
    zabbix-release-6.0-4.el8.noarch
    zabbix-server-mysql-6.0.22-release1.el8.x86_64
    zabbix-web-6.0.22-release1.el8.noarch
    zabbix-apache-conf-6.0.22-release1.el8.noarch
    zabbix-web-deps-6.0.22-release1.el8.noarch
    zabbix-agent-6.0.22-release1.el8.x86_64


    MariaDB:

    MariaDB-devel-11.1.2-1.el8.x86_64
    MariaDB-client-compat-11.1.2-1.el8.noarch
    MariaDB-shared-11.1.2-1.el8.x86_64
    MariaDB-client-11.1.2-1.el8.x86_64
    MariaDB-server-compat-11.1.2-1.el8.noarch
    MariaDB-common-11.1.2-1.el8.x86_64
    MariaDB-server-11.1.2-1.el8.x86_64


    everything seems to start OK. But my frontend does not come up at all. I get the following error in httpd log file.

    [Mon Oct 23 23:09:04.843498 2023] [proxy_fcgi:error] [pid 25223:tid 140598707222272] [client 192.168.51.2:55052] AH01071: Got error 'PHP message: PHP Fatal error: Cannot redeclare error() in /usr/share/zabbix/include/func.inc.php on line 2162\n'


    in /etc/httpd/conf.d/zabbix.conf, I have the following. I did not change anything from default.

    Alias /zabbix /usr/share/zabbix

    ProxyTimeout 300

    <Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Require all granted

    <IfModule dir_module>
    DirectoryIndex index.php
    </IfModule>

    <FilesMatch \.(php|phar)$>
    SetHandler "proxy:unix:/run/php-fpm/zabbix.sock|fcgi://localhost"

    </FilesMatch>
    </Directory>​


    Any idea how I can solve this PHP error above ?

    thanks a lot in advance.
Working...