Ad Widget

Collapse

Promblem On Installing Frontend,ERROR 500

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • caozhiming
    Junior Member
    • Jun 2015
    • 4

    #1

    Promblem On Installing Frontend,ERROR 500

    Hi,ALL:

    I got promblem when i installing frontend,Please could you help me?

    I copied zabbix frontend files to /var/www/html/zabbix. Opend the url http://ip/zabbix,my browser show the http error 500. php report error message is:

    [COLOR="black"]Fatal error: Cannot redeclare error() in /var/www/html/zabbix/include/func.inc.php on line 1909 Call Stack: 0.0001 626312 1. {main}() /var/www/html/zabbix/index.php:0 0.0003 626896 2. require_once('/var/www/html/zabbix/include/config.inc.php') /var/www/html/zabbix/index.php:24 0.0007 648184 3. ZBase->run() /var/www/html/zabbix/include/config.inc.php:33 0.0008 648264 4. ZBase->init() /var/www/html/zabbix/include/classes/core/ZBase.php:127

    My environment: CentOS6.5+Apache+php+MySQL,Installation from sources,the server,sgent and the MySQL is ok.

    Thanks
  • caozhiming
    Junior Member
    • Jun 2015
    • 4

    #2
    installing from packages,the same error

    I tried to install from packages,but the same error showed.
    ERROR MESSAGE:
    Fatal error: Cannot redeclare error() in /usr/share/zabbix/include/func.inc.php on line 1909 Call Stack: 0.0002 626696
    1. {main}() /usr/share/zabbix/index.php:0 0.0006 627264
    2. require_once('/usr/share/zabbix/include/config.inc.php') /usr/share/zabbix/index.php:24 0.0013 648528
    3. ZBase->run() /usr/share/zabbix/include/config.inc.php:33 0.0013 648608
    4. ZBase->init() /usr/share/zabbix/include/classes/core/ZBase.php:127


    Originally posted by caozhiming
    Hi,ALL:

    I got promblem when i installing frontend,Please could you help me?

    I copied zabbix frontend files to /var/www/html/zabbix. Opend the url http://ip/zabbix,my browser show the http error 500. php report error message is:

    COLOR="blue"]Fatal error: Cannot redeclare error() in /var/www/html/zabbix/include/func.inc.php on line 1909 Call Stack: 0.0001 626312 1. {main}() /var/www/html/zabbix/index.php:0 0.0003 626896 2. require_once('/var/www/html/zabbix/include/config.inc.php') /var/www/html/zabbix/index.php:24 0.0007 648184 3. ZBase->run() /var/www/html/zabbix/include/config.inc.php:33 0.0008 648264 4. ZBase->init() /var/www/html/zabbix/include/classes/core/ZBase.php:127[/COLOR]

    My environment: CentOS6.5+Apache+php+MySQL,Installation from sources,the server,sgent and the MySQL is ok.

    Thanks

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      Please check the Apache settings.
      There is a possibility that the setting for Zabbix is they've been set at a plurality of locations.

      If you're using CentOS standard package, please check the following file and directory.
      /etc/httpd/conf/httpd.conf
      /etc/httpd/conf.d/

      Comment

      • caozhiming
        Junior Member
        • Jun 2015
        • 4

        #4
        Thanks.

        I checked the Apache settings, and can't find any problem.
        There are three files about the Apache setting.
        /etc/httpd/conf/httpd.conf --I didn't modify.
        /etc/httpd/conf.d/php.conf --I modified. (AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .php)
        /etc/httpd/conf.d/zabbix.conf --Created when installing zabbix rpm packages. And i modified the php_values date.timezone.


        The position of zabbix frontend is /usr/share/zabbix.
        For testing, i added a file: /usr/share/zabbix/phpinfo.php.
        The file source is:<?php phpinfo();?>

        And I browsed the url /usr/share/zabbix/phpinfo.php, it works.
        But when brows the url /usr/share/zabbix, the http 500 error shows.


        Originally posted by Atsushi
        Please check the Apache settings.
        There is a possibility that the setting for Zabbix is they've been set at a plurality of locations.

        If you're using CentOS standard package, please check the following file and directory.
        /etc/httpd/conf/httpd.conf
        /etc/httpd/conf.d/

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #5
          At first, you said that "frontend files to /var/www/html/zabbix".
          Now, you said that "The position of zabbix frontend is /usr/share/zabbix".

          Which is correct?

          Comment

          • caozhiming
            Junior Member
            • Jun 2015
            • 4

            #6
            I have tried two ways to install zabbix.

            The first is installing sources,i manually copy frontend to /var/www/html . At this time ,the http 500 error showed.

            The second time,I tried to install zabbix with rpm packages. The frontend was placed at /usr/share/zabbix automatically. And the same error alse showed.

            So, there were two ways , and I got the same error.

            Originally posted by Atsushi
            At first, you said that "frontend files to /var/www/html/zabbix".
            Now, you said that "The position of zabbix frontend is /usr/share/zabbix".

            Which is correct?

            Comment

            Working...