Ad Widget

Collapse

Strange errors with web-interface and log file on Suse 10.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drathi81
    Junior Member
    • Aug 2005
    • 21

    #1

    Strange errors with web-interface and log file on Suse 10.0

    Hi forum,

    I've just update my server with some new harddiscs an also updated from Suse 9.3 to 10.0. On the old configuration 1.1-beta2 was running fine.
    So with the new installation I decided to update Zabbix to 1.1-beta5 - maybay a wrong idea?
    Starting Zabbix with script works, the processes are running - but I got the error
    Code:
    Unable to open log file [/var/log/zabbix_server.log] [Permission denied]
    - as I did it on my Suse 9.3 Installation I've put an
    Code:
    chown zabbix:zabbix zabbix_server.log
    Does Zabbix no longer run as user zabbix?

    But this is nothing to the web-interface:
    Pointing an browser on http://server/zabbix brings you an aboslutly empty HMTL-Page. And the error-log from my apache2 fills itself with
    Code:
    [client 192.168.1.30] PHP Warning:  Call-time pass-by-reference has been deprecated - argument passed by value;  If you would like to pass it by reference,
     modify the declaration of eregi().  If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your IN
    I file.  However, future versions may not support this any longer.  in /srv/www/htdocs/zabbix/include/config.inc.php on line 731
    [client 192.168.1.30] PHP Warning:  Call-time pass-by-reference has been deprecated - argument passed by value;  If you would like to pass it by reference,
     modify the declaration of eregi().  If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your IN
    I file.  However, future versions may not support this any longer.  in /srv/www/htdocs/zabbix/include/config.inc.php on line 748
    [client 192.168.1.30] PHP Warning:  Call-time pass-by-reference has been deprecated - argument passed by value;  If you would like to pass it by reference,
     modify the declaration of eregi().  If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your IN
    I file.  However, future versions may not support this any longer.  in /srv/www/htdocs/zabbix/include/config.inc.php on line 819
    [client 192.168.1.30] PHP Warning:  Call-time pass-by-reference has been deprecated - argument passed by value;  If you would like to pass it by reference,
     modify the declaration of eregi().  If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your IN
    I file.  However, future versions may not support this any longer.  in /srv/www/htdocs/zabbix/include/config.inc.php on line 845
    [client 192.168.1.30] PHP Warning:  Call-time pass-by-reference has been deprecated - argument passed by value;  If you would like to pass it by reference,
     modify the declaration of eregi().  If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your IN
    I file.  However, future versions may not support this any longer.  in /srv/www/htdocs/zabbix/include/config.inc.php on line 874
    [client 192.168.1.30] PHP Warning:  main(include/defines.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or direc
    tory in /srv/www/htdocs/zabbix/include/config.inc.php on line 31
    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/defines.inc.php' for inclusion (inclu
    de_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 31
    [client 192.168.1.30] PHP Warning:  main(include/db.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory
    in /srv/www/htdocs/zabbix/include/config.inc.php on line 32
    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/db.inc.php' for inclusion (include_pa
    th='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 32
    [client 192.168.1.30] PHP Warning:  main(include/html.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or director
    y in /srv/www/htdocs/zabbix/include/config.inc.php on line 33
    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/html.inc.php' for inclusion (include_
    path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 33
    [client 192.168.1.30] PHP Warning:  main(include/locales.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or direc
    tory in /srv/www/htdocs/zabbix/include/config.inc.php on line 34
    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/locales.inc.php' for inclusion (inclu
    de_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 34
    [client 192.168.1.30] PHP Warning:  main(include/audit.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directo
    ry in /srv/www/htdocs/zabbix/include/config.inc.php on line 36
    ...and so on...
    Enabling the "call_time_pass_reference" didin't solve the problem - and I cannot remember doing so under Suse 9.3....

    Anbybody an idea what went wrong with my installation...?

    Greets
    drathi81
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Check permission of PHP files and directory include/.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • drathi81
      Junior Member
      • Aug 2005
      • 21

      #3
      For testing I've set
      Code:
      chmod -R 777 zabbix/
      on the files in the apache-directory but this didn't change anything.
      I've changed to owner from zabbix:zabbix to root:root and over to wwwrun:www - without any success.

      I'm just wondering if SuSE has changed something in the standard configuration of the apache...

      Comment

      • drathi81
        Junior Member
        • Aug 2005
        • 21

        #4
        Just to complete:

        I think it must result from changes in the apache-config from Suse 10!
        I've downloaded und installed the previous version 1.1beta2 and got the same problems...
        If anybody has an idea what to look for in the configs I'll be gald, tomorrow I'll try to take a look at the "old" apache-config from Suse 9.3 but for this I've to reactivate my old hardddiscs...

        Comment

        • KarmaPolice
          Member
          • Oct 2005
          • 95

          #5
          Not to point out the obvious but did you try what the error says to do: "you can set allow_call_time_pass_reference to true in your INI"

          Also... check out your includes paths as some of the errors seem to point to that...

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            FYI The "allow_call_time_pass_reference" is fixed in the latest code. The problem will no longer exist starting from 1.1beta6.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            • drathi81
              Junior Member
              • Aug 2005
              • 21

              #7
              Update to beta6 today with the following result:

              As from Alexei mentioned the call_time_pass_reference ist removed.

              BUT:
              The Errors on my Suse 10.0 are the same. So wondering about the "include" message I started to remove ALL entries in config.inc.php pointing to other files in the inculde-directory.
              So e.g. I've changed
              Code:
                      include_once    "include/defines.inc.php";
                      include_once    "include/db.inc.php";
                      include_once    "include/html.inc.php";
                      include_once    "include/locales.inc.php";
                      ...
              into
              Code:
                      include_once    "defines.inc.php";
                      include_once    "db.inc.php";
                      include_once    "html.inc.php";
                      include_once    "locales.inc.php";
                      ...
              and so on for all other files.
              This did it! No more error-messages, the frontend ist working as well as ever known!

              As I must say that I'm no Apache/PHP-Guru , all I understand so far is that there must be a change in the standard-configuration from Suse. Why else should it run on Suse 9.3 without any problems and with Suse 10.0 this.
              So if anybody knows what option of Apache/PHP to change - tell it!

              Greets
              drathi81

              Comment

              • Alexei
                Founder, CEO
                Zabbix Certified Trainer
                Zabbix Certified SpecialistZabbix Certified Professional
                • Sep 2004
                • 5654

                #8
                I don't think that the problem is related to call_time_pass_reference. Please could you post your original error messages for 1.1beta6? Anyone else experiencing the same issue?
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • krusty
                  Senior Member
                  • Oct 2005
                  • 222

                  #9
                  I have installed SuSE 10.0 with zabbix 1.1beta6 but i have no problem with the webserver or something else. Everything is working fine.

                  Comment

                  • drathi81
                    Junior Member
                    • Aug 2005
                    • 21

                    #10
                    @ krusty:
                    Could you mail me your list of installed components and maybe your configuration files?

                    @ Alexei:

                    Here's the output of my /var/log/apache2/error_log:
                    Code:
                    [Thu Feb 09 10:18:26 2006] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
                    [Thu Feb 09 10:18:26 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
                    [Thu Feb 09 10:18:27 2006] [notice] Apache/2.0.54 (Linux/SUSE) configured -- resuming normal operations
                    [client 192.168.1.30] PHP Warning:  main(include/defines.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 39
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/defines.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 39
                    [client 192.168.1.30] PHP Warning:  main(include/db.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 40
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/db.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 40
                    [client 192.168.1.30] PHP Warning:  main(include/html.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 41
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/html.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 41
                    [client 192.168.1.30] PHP Warning:  main(include/locales.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 42
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/locales.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 42
                    [client 192.168.1.30] PHP Warning:  main(include/audit.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 44
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/audit.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 44
                    [client 192.168.1.30] PHP Warning:  main(include/autoregistration.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 45
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/autoregistration.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 45
                    [client 192.168.1.30] PHP Warning:  main(include/escalations.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 46
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/escalations.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 46
                    [client 192.168.1.30] PHP Warning:  main(include/hosts.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 47
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/hosts.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 47
                    [client 192.168.1.30] PHP Warning:  main(include/users.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 48
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/users.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 48
                    [client 192.168.1.30] PHP Warning:  main(include/graphs.inc.php) [<a href='function.main'>function.main</a>]: failed to open stream: No such file or directory in /srv/www/htdocs/zabbix/include/config.inc.php on line 49
                    [client 192.168.1.30] PHP Warning:  main() [<a href='function.include'>function.include</a>]: Failed opening 'include/graphs.inc.php' for inclusion (include_path='/usr/share/php5') in /srv/www/htdocs/zabbix/include/config.inc.php on line 49
                    ...
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant T_ZBX_STR - assumed 'T_ZBX_STR' in /srv/www/htdocs/zabbix/index.php on line 31
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant O_NO - assumed 'O_NO' in /srv/www/htdocs/zabbix/index.php on line 31
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant NOT_EMPTY - assumed 'NOT_EMPTY' in /srv/www/htdocs/zabbix/index.php on line 31
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant T_ZBX_STR - assumed 'T_ZBX_STR' in /srv/www/htdocs/zabbix/index.php on line 32
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant O_OPT - assumed 'O_OPT' in /srv/www/htdocs/zabbix/index.php on line 32
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant T_ZBX_STR - assumed 'T_ZBX_STR' in /srv/www/htdocs/zabbix/index.php on line 33
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant O_OPT - assumed 'O_OPT' in /srv/www/htdocs/zabbix/index.php on line 33
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant T_ZBX_INT - assumed 'T_ZBX_INT' in /srv/www/htdocs/zabbix/index.php on line 34
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant O_OPT - assumed 'O_OPT' in /srv/www/htdocs/zabbix/index.php on line 34
                    [client 192.168.1.30] PHP Notice:  Use of undefined constant P_ACT - assumed 'P_ACT' in /srv/www/htdocs/zabbix/index.php on line 34
                    [client 192.168.1.30] PHP Fatal error:  Call to undefined function BETWEEN() in /srv/www/htdocs/zabbix/index.php on line 34
                    I've send you an pm with the complete output of the error_log, it's to huge for a posting.

                    [edit] Ok, it's also to long for an pm, maybe you could tell me an adress to send the complete error_log to?
                    Last edited by drathi81; 09-02-2006, 11:34.

                    Comment

                    • drathi81
                      Junior Member
                      • Aug 2005
                      • 21

                      #11
                      With the help of krusty I could find the problem.

                      As suggested it came with the configuration from Suse 10.0 - you have to uncomment in the /etc/php5/apache2/php.ini the following line by ";":
                      Code:
                      ;include_path = "/usr/share/php5"

                      Comment

                      Working...