[SOLVED] Impossible to connect in admin/admin

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

[SOLVED] Impossible to connect in admin/admin

Post by Volund »

Hello,

I can't connect to cacti with the login/pass : admin/admin
It always reload the login page without error message.

My configuration : IIS6, PHP5.2.4, MySQL5.0.45

I made some trying but it does'nt work :

In php.ini :

register_arg_argv = on
register_globals = on
session.use_cookies=1
session.save_path=/tmp
session.cookie_path=/

I try these command lines in mysql :

update user_auth set password = md5('admin') where username = 'admin';

update settings set value="" where name="global_auth";

Nothing of that does'nt solve the problem.

Thanks for helping me.
Regards
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Typically this is a problem with sessions not working in PHP.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

Yeah, I'm understanding that is a problem with PHP session but I have'nt find any solution to solve this problem, any idea?
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

You session.save_path can't be good(/tmp is a Unix-style path).
Change it to something like this: session.save_path = "c:/php/tmp", and make sure it exists, and is writable for the IIS users.
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

Thanks Yomark :) ,

I made these changes :

session.save_path = "c:/php/tmp"
session.cookie_path = "c:/php/session"

I applied rights in read/write/execute for IIS_WPG and IUSR_XXXX on these folders and subfolders, but........

.....these changes does'nt solve the problem :cry:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I suggest you read my installation guide http://forums.cacti.net/viewtopic.php?t=11747
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

I have read your installation guide and verify all. All is ok but does'nt work.

I'm going to try another versions of MySQL and PHP.
If it does'nt work I will try to replace IIS by Apache.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I doubt different versions will change anything -- you have a configuration issue.

Do you see files in the c:/php/tmp or c:/php/session folders?
Fire up Sysinternals FileMon and watch what happens when you attempt to login. Turn highlighting on in filemon's filter settings and set to 'denied'. You'll probably see your problem then.
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

I have files in c:/php/tmp and in c:/php/session folders.

I try to use Apache instead of IIS and then I had a 403 error, this is probably a problem in my apache configuration. The login page does'nt appear.

I have soon install Filemon but there is no denied access (for IIS and for Apache).
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What cacti version?

Since this is a fresh install, might want to try my beta installer to get things rolling instead.
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

I have installed the cacti 0.8.7

I resolved my 403 error and I have the same problem with Apache and IIS.

I can't connect to the admin account it always reload the login page......I have this error in my Apache log file :

Mon Nov 12 17:18:46 2007] [error] [client 127.0.0.1] PHP Notice: A session had already been started - ignoring session_start() in C:\\cacti\\include\\global.php on line 119, referer: http://localhost:81/index.php
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I'm still sticking by its a permission issue -- or bug with cacti 0.8.7. double check the IUSR_ and IIS_WPG accounts have modify rights to the tmp and session folders.
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

Thanks for your help BSOD

my last modifications :

I remplace cacti 0.8.7 version by cacti 0.8.6.j version, I drop my cacti database and recreate it.

I apply "total control" rights to IIS_WPG and the IUSR_ and all users to the PHP, the MySQL, the Net-SNMP, the inetpub folders and apply these rights to the childs.

I have the same problem, so I think that's not a right problem....

My versions :

IIS 6
Cacti 0.8.6j
RRDTool 1.25.15
PHP 5.2.4
MySQL 5.0.45
Net-SNMP 5.4.13
Cygwin 1.5
Ubuntu 7 | Apache2.2 | Cacti 0.8.6j | RRDTool 1.25.15 | PHP 5.2.4 | MySQL 5.0.45 | Net-SNMP 5.4.13 | Cygwin 1.5 | Spine
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Run: php -m at the command prompt and paste the output.

Please start Sysinternals Filemon logging and then attempt to login to cacti. Save the Filemon log file and attach.
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

I find another solution, I abandonned to install cacti on Windows and I had install it on Ubuntu, so I have no more problem now :D
Ubuntu 7 | Apache2.2 | Cacti 0.8.6j | RRDTool 1.25.15 | PHP 5.2.4 | MySQL 5.0.45 | Net-SNMP 5.4.13 | Cygwin 1.5 | Spine
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests