Giving fruity 1.0b2 a try: Getting a parse error


#1

Hi all!

Trying Fruity 1.0b2 for the first time. But all I get so far is:

Parse error: parse error, unexpected T_OBJECT_OPERATOR in /var/www/localhost/htdocs/fruity/output/output.php on line 314

Does Fruity expect any Nagios config files to be present in advance? Or does it not like PHP-4 anymore…? 8)


#2

Never used it, sorry.


#3

yes, i just installed and read it requires PHP5 - ‘for object oriented programming’… so, i can’t use it until PHP goes to RHEL3…


#4

I have the same and other errors …

================
Parse error: parse error in /usr/local/nagios/share/fruity/output/output.php on line 314

Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION’ or T_VAR' or‘}’’ in /usr/local/nagios/share/fruity/includes/output.inc on line 28

Parse error: parse error in /usr/local/nagios/share/fruity/modules/modules.inc on line 26

Parse error: parse error in /usr/local/nagios/share/fruity/includes/objects.inc on line 27

Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION’ or T_VAR' or‘}’’ in /usr/local/nagios/share/fruity/includes/host.inc on line 28

Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION’ or T_VAR' or‘}’’ in /usr/local/nagios/share/fruity/includes/fruity.inc on line 29

Fatal error: Call to undefined function: session_start() in /usr/local/nagios/share/fruity/includes/sessions.inc on line 80

and i have php5 installed … just compiled with mysql zlib (for html tree)and session extensions

omit157:/home/frankie/monarch-097a # php -v
PHP 5.0.5 (cgi) (built: Sep 28 2005 15:48:46)
Copyright © 1997-2004 The PHP Group
Zend Engine v2.0.5, Copyright © 1998-2004 Zend Technologies

any clue ??

Ciao

Francesco


#5

I found my problem … i installed php5 without php5 support (stupid eh ?) … I recompiled with the right configuration and after some suse 9.1 apache2 configuration files cut & paste i got the fruity up and running …

Ciao

Francesco