PDA

View Full Version : Strange errors with web-interface and log file on Suse 10.0


drathi81
01-02-2006, 18:46
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? :confused:
Starting Zabbix with script works, the processes are running - but I got the error 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 anchown zabbix:zabbix zabbix_server.log Does Zabbix no longer run as user zabbix? :eek:

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 [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
01-02-2006, 20:10
Check permission of PHP files and directory include/.

drathi81
01-02-2006, 21:09
For testing I've set chmod -R 777 zabbix/ on the files in the apache-directory but this didn't change anything. :mad:
I've changed to owner from zabbix:zabbix to root:root and over to wwwrun:www - without any success. :mad:

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

drathi81
01-02-2006, 22:05
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... :mad:
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... :p

KarmaPolice
02-02-2006, 04:13
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...

Alexei
02-02-2006, 08:38
FYI The "allow_call_time_pass_reference" is fixed in the latest code. The problem will no longer exist starting from 1.1beta6.

drathi81
08-02-2006, 21:37
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
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
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! :o

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. :confused:
So if anybody knows what option of Apache/PHP to change - tell it! :D

Greets
drathi81

Alexei
08-02-2006, 22:22
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?

krusty
09-02-2006, 07:57
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.

drathi81
09-02-2006, 10:28
@ 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:
[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?

drathi81
09-02-2006, 11:13
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 ";":
;include_path = "/usr/share/php5"