Invalid PHP_SELF Path

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

Moderators: Developers, Moderators

Post Reply
cdchrisd
Posts: 4
Joined: Fri Apr 07, 2006 5:00 pm

Invalid PHP_SELF Path

Post by cdchrisd »

Upgrading from 8.6j to 8.7b on Windows and I got the following error

Invalid PHP_SELF Path

I tried the directions on this thread.

http://forums.cacti.net/about25759-0-asc-0.html

however now I'm stuck at a login loop. I enter in the username/password and it just takes me back to the login page.

Anyone else having this trouble and come up with a solution?

OS: Windows 2003 SP2
Webserver: IIS
Cacti: 8.7b
Spine: 8.7a
MySQL: 5.0.51a
PHP: 5.2.5
RRDTool:Win32 Version 1.2.15
Net-SNMP: 5.4.1
No plugin architecture yet with 8.7b, was ver 1.0 under 8.6j




Array
(
[ALL_HTTP] => HTTP_CACHE_CONTROL:no-cache
HTTP_CONNECTION:Keep-Alive
HTTP_ACCEPT:*/*
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:en-us
HTTP_HOST:server
HTTP_REFERER:http://server/cacti/index.php
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
HTTP_UA_CPU:x86

[HTTPS] => off
[SCRIPT_NAME] => /cacti/index.php
[HTTP_COOKIE] =>
[AUTH_PASSWORD] =>
[AUTH_TYPE] =>
[AUTH_USER] =>
[CONTENT_LENGTH] => 0
[CONTENT_TYPE] =>
[PATH_TRANSLATED] => c:\inetpub\wwwroot
[QUERY_STRING] =>
[REMOTE_ADDR] => 10.0.0.x
[REMOTE_HOST] => 10.0.0.x
[REMOTE_USER] =>
[REQUEST_METHOD] => GET
[SERVER_NAME] => server
[SERVER_PORT] => 80
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_SOFTWARE] => Microsoft-IIS/6.0
[APPL_MD_PATH] => /LM/W3SVC/1/Root/cacti
[APPL_PHYSICAL_PATH] => F:\cacti\website\
[INSTANCE_ID] => 1
[INSTANCE_META_PATH] => /LM/W3SVC/1
[LOGON_USER] =>
[REQUEST_URI] => /cacti/index.php
[URL] => /cacti/index.php
[SCRIPT_FILENAME] => F:\cacti\website\index.php
[ORIG_PATH_INFO] => /cacti/index.php
[PATH_INFO] =>
[ORIG_PATH_TRANSLATED] => F:\cacti\website\index.php
[DOCUMENT_ROOT] => c:\inetpub\wwwroot
[PHP_SELF] => /cacti/index.php
[HTTP_CACHE_CONTROL] => no-cache
[HTTP_CONNECTION] => Keep-Alive
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT_LANGUAGE] => en-us
[HTTP_HOST] => mis
[HTTP_REFERER] => http://server/cacti/index.php
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
[HTTP_UA_CPU] => x86
[REQUEST_TIME] => 1204578982
[argv] => Array
(
)

[argc] => 0
)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Invalid PHP_SELF Path

Post by BSOD2600 »

cdchrisd wrote:however now I'm stuck at a login loop. I enter in the username/password and it just takes me back to the login page.
That is a sign of a permission issue with cookies/php session data.

make sure the IUSR and IIS_WPG accounts have modfiy rights on the php\sessiondata and php\uploadtemp folders.
tymbow
Cacti User
Posts: 54
Joined: Sat May 14, 2005 8:00 pm

Post by tymbow »

I run Cacti on Windows and had the "Invalid PHP_SELF Path" issue but the fix in the link you posted does work correctly so it is not likely to be the issue.
cdchrisd
Posts: 4
Joined: Fri Apr 07, 2006 5:00 pm

Post by cdchrisd »

Permissions check out per your Install Guide

Ran filemon on the web server and can find you access denied. Heck I can't even find a spot where it tries to write the session cookie.

My php.ini file
session.save_path="f:\cacti\php\session"

I never had the session.save_path in 8.6j, and of course removing it in 8.7b does nothing. Still no error on creating a session cookie when watching filemon though.
cdchrisd
Posts: 4
Joined: Fri Apr 07, 2006 5:00 pm

Post by cdchrisd »

Tymbow,
Is your cacti install an upgrade from a previous version or a fresh install?
tymbow
Cacti User
Posts: 54
Joined: Sat May 14, 2005 8:00 pm

Post by tymbow »

It was an upgrade.

Basically my real and virtual Cacti paths are not the same which I why I get the error.
cdchrisd
Posts: 4
Joined: Fri Apr 07, 2006 5:00 pm

Post by cdchrisd »

Just tested out a fresh install and creating a junction point does seem to fix it. That's the closest thing I can think to do with IIS that the apache users are doing.

This also fixed my login issue on the production box.
laamidd
Posts: 48
Joined: Fri Feb 17, 2006 10:31 am

Post by laamidd »

I have the same problem on a fresh 8.7b install. I hit the home page and get "Invalid PHP_SELF Path".

What do you symlink to get rid of this?

Thanks,
Bob
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

follow the solution in the first post link.
laamidd
Posts: 48
Joined: Fri Feb 17, 2006 10:31 am

Post by laamidd »

Thanks, Megaman's fix worked for me too.

Bob
smeenz
Posts: 2
Joined: Thu Mar 13, 2008 10:29 pm

Post by smeenz »

I had this problem and found it was caused by not having cacti installed to \inetpub\wwwroot\cacti under IIS. (I had it as \inetpub\cacti, and had IIS configured to present it as a virtual directory).

Filemon showed me it was trying to open \inetpub\wwwroot\cacti, so I moved it there, and everything was fine.
erwan.l
Cacti User
Posts: 138
Joined: Tue Jan 22, 2008 4:36 am
Contact:

Post by erwan.l »

Hi,
Setting doc_root = c:\inetpub\wwwroot on my php.ini seems to fix that issue.

Regards,
Erwan.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest