Wierd error with Cacti 0.6.8a and RH7.3

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

Moderators: Developers, Moderators

Post Reply
ritter
Posts: 22
Joined: Tue Jan 22, 2002 7:00 pm
Location: Lake Forest, IL USA
Contact:

Wierd error with Cacti 0.6.8a and RH7.3

Post by ritter »

I have a RedHat 7.3 box, using the latest RedHat errata rpms for php, apache, and mysql:

php:

php-mysql-4.1.2-7.3.4
php-manual-4.1.2-7.3.4
php-4.1.2-7.3.4
php-snmp-4.1.2-7.3.4
php-devel-4.1.2-7.3.4


apache:

apache-devel-1.3.23-14
apache-1.3.23-14
apache-manual-1.3.23-14

MySQL:

mysql-3.23.49-3
mysqlclient9-3.23.22-6
mysql-devel-3.23.49-3
mysql-server-3.23.49-3


My problem is:

I installed cacti, and the php scripts will not run, going to the cacti dir in the brower outputs:

raXnet cacti (about)"); DrawMatrixRowEnd(); DrawMatrixTableEnd(); include_once ("include/bottom_footer.php"); ?>

I am using other php applications (phpmyadmin, ACID, phplot, jpgraph) without problems. I also ran a phpinfo(); from within the cacti dir to make sure php would run in the dir, and it worked fine.

I also tried running /usr/bin/php /var/www/html/cacti/cmd.php, and the output was:

X-Powered-By: PHP/4.1.2
Content-type: text/html

<?/*
+-------------------------------------------------------------------------+
| Copyright (C) 2002 Ian Berry

.....and the rest of the cmd.php script.


What is going on here? I figure there is a php config problem or something?

Nicholas
Network Administrator
Lake Forest College
ritter
Posts: 22
Joined: Tue Jan 22, 2002 7:00 pm
Location: Lake Forest, IL USA
Contact:

Update

Post by ritter »

I downgraded to a lower version of Cacti, and still had the same problem.

I have run Cacti on RH 7.3 in the past without problems...so I am quite puzzled.

Nicholas
Network Administrator
Lake Forest College
ritter
Posts: 22
Joined: Tue Jan 22, 2002 7:00 pm
Location: Lake Forest, IL USA
Contact:

Another interesting thing....

Post by ritter »

I was checking my apache error log, and found an entry:

File does not exist: /var/www/html/cacti/images/install_<

When I searched install.php, I found the following at line 286:

<p align="right"><input type="image" src="ima\
ges/install_<?if ($step==TOTAL_STEPS){?>finish<?}else{?>next<?}?>.gif" alt="<?if ($step==TOTA\
L_STEPS){?>Finish<?}else{?>Next<?}?>"></p>


Although I do not know why, it looks like the file is garbled. If this file is garbled, who knows what is wrong with any of the other files.

The thing is, I have downloaded and installed source code for other apps in the exact same way, and not had any problems.

Any ideas?
Network Administrator
Lake Forest College
ritter
Posts: 22
Joined: Tue Jan 22, 2002 7:00 pm
Location: Lake Forest, IL USA
Contact:

corruption

Post by ritter »

I have redownloaded and decompressed cacti, and still fine the same problem with file corruption.

I am doing 'tar -zxvf cacti-0.6.8.tar.gz' to decompress the archive.....

something realy funky is going one here/......


ug....
Network Administrator
Lake Forest College
ritter
Posts: 22
Joined: Tue Jan 22, 2002 7:00 pm
Location: Lake Forest, IL USA
Contact:

GPG Sig?

Post by ritter »

Hey Rax-

Can you MD5 sign the cacti downloads? I figure this will help to identify where the file corruption is occuring.

Nicholas
Network Administrator
Lake Forest College
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

I'm not sure about your present problems. Regarding your first post - it is because of "short_open_tag" variable in php.ini. You need to set it to "on".

- bulek
ritter
Posts: 22
Joined: Tue Jan 22, 2002 7:00 pm
Location: Lake Forest, IL USA
Contact:

FIXED! thanx bulek

Post by ritter »

That setting in php.ini fixed the problem, it was Off, so setting it to on and restarting apache fixed it.

Thanks Bulek.

Nicholas
Network Administrator
Lake Forest College
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests