Cacti Installation Problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

jon
Posts: 1
Joined: Thu Apr 25, 2002 4:59 pm

Cacti Installation Problem

Post by jon »

Hi rax

i have got a question regarding installation of cacti, i have setup apache with php and mysql and its working allright.

I have followed the instructions in the documentation, and when i point my browser to http://your-server/cacti/index.php

a page with heading cacti installation guide opens up, but the next button at the bottom of the page does not take u anywhere, it basically points back to http://your-server/cacti/index.php and i cant proceed with the installation any further

Any help would be highly appreciated.

Thanking you in advance

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

Post by raX »

What version of PHP/Apache are you currently running?

It sounds like this may be a PHP configuration issue, check to make sure the following variables are set in your /etc/php.ini file:

Code: Select all

register_globals = On
register_argc_argv = On
Tell me how it works out. If not, there is an easy way that we can bypass the install screen.

-Ian
meijerm
Posts: 2
Joined: Fri Apr 26, 2002 4:56 pm
Location: The Netherlands
Contact:

Post by meijerm »

Hi I am having the same problem.

I am using Apache/1.3.22 (Unix) (Red-Hat/Linux) mod_ssl/2.8.5 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.2.0 mod_perl/1.26

I did a fresh install of Cacti 0.6.7
Can you tell me what to do to bypass this

thanks in advance

Marco
meijerm
Posts: 2
Joined: Fri Apr 26, 2002 4:56 pm
Location: The Netherlands
Contact:

Post by meijerm »

Hi I seem to have found the problem.

When I checked via PHPINFO() what were all my settings i saw that my php.ini was not read and also that it should be in /usr/local/lib (the default)

But when i put it there i still could not read it.

Then i chmod the php.ini to 777 and voila it worked

Hope it helps
dale

"me too" having installation trouble

Post by dale »

I'm stuck at the install page too.

My php.ini is 644 so that might not be the trouble.

I'm using:

apache 1.3.24
cacti 0.6.8
mysql 3.23.49
php 4.2.0

The apache, mysql, and php are all working
separately, but the cacti is not playing along.

Thanks for any help...
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

To bypass the installation screen run the following query on the cacti database:

Code: Select all

update version set cacti="VERSION";
(Where 'version' is, replace it with your current version of cacti, 0.6.8 is the newest).

That should at least get you past the install screen, hopefully everything works beyond that.

-Ian
dale

I see the login screen now...

Post by dale »

Ian,

Thanks! I see the login screen now, but I can't
get past that with admin/admin as login/pw pair.

Please forgive me, I must be doing something else wrong.

Dale
raX wrote:To bypass the installation screen run the following query on the cacti database:

Code: Select all

update version set cacti="VERSION";
(Where 'version' is, replace it with your current version of cacti, 0.6.8 is the newest).

That should at least get you past the install screen, hopefully everything works beyond that.

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

Post by raX »

When you say you can't get past the login screen, is it rejecting your password or is it just returning you to the login screen?

If it is rejecting your password, it could be a PASSWORD() function problem, I somehow doubt this is the case though.

You probably keep getting returned to the login screen. I assume this is a problem with cookies/PHP sessions. Do you have the following php.ini parameters set?

Code: Select all

session.use_cookies = 1
session.save_path = /tmp
session.cookie_path = /
These are just a few possibilies. However, if this does not work I can tell you how to completely disable cacti's built in authentication.

-Ian
Cforsythe

Same problem

Post by Cforsythe »

I couldn't get past the install.php so I made the database change, now the login screen just loops. The cookie variables are set as displayed in your example.

Thanks in advance,
Carl
Guest

Post by Guest »

Hi,

I allso have problems with the install screen.
I did the database change and now it loops the login screen.
Cookie variables are right.
What do I have to do now?

TIA
Lars
Guest

Post by Guest »

Okey Kids!

Can anyone help me?
Or is this board dead?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Nope this board is still quite alive :)

Your problem definetely has to do with cookies in some form or another. Can you reproduce this problem on multiple machines? It could even be a browser setting.

If you still cannot get past the login screen, try running the query:

Code: Select all

update settings set value="" where name="global_auth";
That should at least turn off cacti's built in authentication and allow you to get into cacti.

-Ian
Lasse
Posts: 4
Joined: Mon May 20, 2002 3:52 pm
Location: Stockholm - Sweden

Post by Lasse »

Hi,

I have not yet tried it on any other machine, I will as soon as i am back at work.
If I do the sugested change in the Database, will cacti then be less secure?
If so, how do I "reverse" the query?

I live in M$ land with SQL server, so this is kinda new to me.. :D

(I'm running cacti on FreeBSD v4.6-PRE)
Lasse
Posts: 4
Joined: Mon May 20, 2002 3:52 pm
Location: Stockholm - Sweden

Post by Lasse »

I'am back!

Now I've tested CACTI on a win2k server with IIS and PHP.
Same results there... :cry:
Forget my question about less security, I did the DB change and I was redirected to CACTI's user interface without any validation.
Added a user and set "global_auth" to "on". Same problem.
There is something that aint right .... :o
Client web browsers are MS IE 6.0

I'am tired, gooing to bed, ceya

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

Post by raX »

Your saying that even after setting 'global_auth' to 'on', you are still not getting a login screen? If so, I've never heard of that happening before. You did change the existing 'global_auth' value in the 'settings' table, and not add a new one, right?

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest