RH9.0, cactid0.8.5 and Undefined variable: argDatabasename

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
zloy_serg
Posts: 2
Joined: Mon Feb 09, 2004 10:04 am
Location: Koenigsberg/Kaliningrad
Contact:

RH9.0, cactid0.8.5 and Undefined variable: argDatabasename

Post by zloy_serg »

Hi all

when i install all required pakages for cactid0.8.5 on my RH9.0
rrdtool-1.0.45-8.rh9.at
mysql-4.0.15-0.n0i
mysql-manual-4.0.15-0.n0i
mysql-devel-4.0.15-0.n0i
mysql-bench-4.0.15-0.n0i
mysql-server-4.0.15-0.n0i
php-mysql-4.2.2-17.2
php-snmp-4.2.2-17.2
php-devel-4.2.2-17.2
php-4.2.2-17.2
httpd-2.0.40-21.1
httpd-devel-2.0.40-21.1
net-snmp-devel-5.0.9-2.90.1
net-snmp-perl-5.0.9-2.90.1
net-snmp-utils-5.0.9-2.90.1
net-snmp-5.0.9-2.90.1


and
make all steps from installation guide

i'm write in my browser http://my-server/cacti/ and i'm must
see succsessfull page with any basic config properties for cacti
but
i see in my browser unsuccsessfull message

Notice: Undefined variable: argDatabasename in /var/www/html/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 326

this messeges i have in apache error_log:
[Mon Feb 09 16:34:24 2004] [notice] child pid 883 exit signal Segmentation fault (11)
[Mon Feb 09 16:34:24 2004] [notice] child pid 885 exit signal Segmentation fault (11)
[Mon Feb 09 16:34:24 2004] [notice] child pid 886 exit signal Segmentation fault (11)


Please help me resolve this trouble.
i'm think that main trouble in work PHP scripts with MySQL database...
but where&?!?!?!?
Bisonlux
Cacti User
Posts: 79
Joined: Wed Jul 23, 2003 4:35 pm
Location: Luxembourg

Post by Bisonlux »

Hi,

To eliminate this, check if you use the right value for "error_reporting" option in your php.ini file:

error_reporting = E_ALL & ~E_NOTICE

(The wave before E_NOTICE is very important)

- Eric
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Not exactly sure where the best place to start debugging would be, but if your're seeing Apache children segfault, there is probably some underlying PHP issue. In the past I've seen Apache children segfault due to certain internal PHP bugs being exploited. I have basically the same setup as you RPM version-wise, and I have no such problems. Have you changed your PHP configuration much from the defaults?

-Ian
Guest

Post by Guest »

i'm resolve trouble

at first i test my php installation:
i create test.php with
<?
mysql_connect();
?>

and get error Segmentation fault after
#php < test.php

i remove all PHP pakages, download php-4.2.2-17.2.src.rpm
and make all needing rpms
install new compiled php-rpms and have SUCCESFULL result
then i'm write in my browser http://my-server/cacti/
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests