Invalid PHP_SELF Path
Moderators: Developers, Moderators
Invalid PHP_SELF Path
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
)
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
)
Re: Invalid PHP_SELF Path
That is a sign of a permission issue with cookies/php session data.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.
make sure the IUSR and IIS_WPG accounts have modfiy rights on the php\sessiondata and php\uploadtemp folders.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
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.
follow the solution in the first post link.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
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.
Filemon showed me it was trying to open \inetpub\wwwroot\cacti, so I moved it there, and everything was fine.
Who is online
Users browsing this forum: No registered users and 5 guests