Author |
|
pivey
Joined: 06 May 2012 Posts: 12 Location: Greece
|
Posted: Fri 18 May '12 16:13 Post subject: WINCACHE login dialog keeps popping up |
|
|
Hi,
W2008 R2 SP1
Apache_httpd-2.4.2-win64.zip
Apache_mod_fcgid-2.3.7-win64.zip
php-5.3.13-nts-Win32-VC9-x86.zip
Not sure if its Apache related but maybe someone can help:
Admin note: moved the post to the correct forum.
Since my upgrade to Apache24, i can not use either XCACHE or WINCACHE login. (meanwhile i disabled xcache and use wincache only)
Issue: -> The login dialog keeps popping up again and again, does not accept password.
On Wincache i can disable login and i can enter settings page.
xcache returned following error when login was disabled:
Fatal error: xcache_count(): xcache.admin.user and/or xcache.admin.pass settings is not configured. Make sure you've modified the correct php ini file for your php used in webserver. in C:\wwwmap\xxxxxx.com\catchit\xcache.php on line 211
Yes, correct php.ini is configured. No issue there
I have read trough this but its IIS related fix, could it be relevant for Apache as well?
http://blogs.iis.net/donraman/archive/2009/10/24/wincache-statistics-page-login-dialog-keeps-popping-up.aspx
Can anyone help? |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Sun 20 May '12 7:26 Post subject: |
|
|
Quote: | xcache returned following error when login was disabled:
Fatal error: xcache_count(): xcache.admin.user and/or xcache.admin.pass settings is not configured. Make sure you've modified the correct php ini file for your php used in webserver. in C:\wwwmap\xxxxxx.com\catchit\xcache.php on line 211 |
You need edit file and remove part of code responsible for autorization or add password
Issue: -> The login dialog keeps popping up again and again, does not accept password.
If you use PHP as php-cgi in Apache for authorization you need add to .htaccess some rule
eq when file index.php use authorization:
RewriteEngine On
RewriteCond %{THE_REQUEST} index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
___
If you try use wincache.php for apache - is miss configured due some part of code are for IIS. Graphs not show and will be problem with login
For login your can use my fixed wincache.php but is off autorization so places this file eq in subfolder or admin filder
http://www.2shared.com/uploadComplete.jsp?sId=NKsGBLtBdT0evsTO |
|
Back to top |
|
pivey
Joined: 06 May 2012 Posts: 12 Location: Greece
|
Posted: Fri 08 Jun '12 21:24 Post subject: |
|
|
Hi and sorry that i reply so late.
I have tried to download your file, but instead i have only option to upload a file.
Regarding xcache, i forgot to mention that standard (recommended) php.ini setting
zend_extension_ts = c:/php/ext/php_xcache.dll
does not work
-> it returns "xcahce is not loaded, check your php.ini file
Instead i have to load as win32
extension = php_xcache.dll
that way it works and i receive the login window.
But with your recommendation for placing .htaccess it does not work either.
Has anyone had same issue? |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Sun 10 Jun '12 15:59 Post subject: |
|
|
In wincache i remove part of code responsible for autorization
Install Wincache or APC but i strong recommend this first
Quote: |
Hi and sorry that i reply so late.
I have tried to download your file, but instead i have only option to upload a file. |
They remove this file
http://pastebin.com/KVXSxzC1
Find button download and downland it the rename file form wincache.php.txt to wincache.txt
http://sourceforge.net/projects/wincache/files/ |
|
Back to top |
|
pivey
Joined: 06 May 2012 Posts: 12 Location: Greece
|
Posted: Tue 12 Jun '12 11:49 Post subject: |
|
|
Hi Kanashii,
i can not exactly follow what your recommendation is.
Is it about to disable authentication process in Wincache?
Because this does not need any code change.. you just set AUTH, 0 in script and can access Wincache dashboard without problems.
This works fine for me. Caching works perfect.
My initial (strange) problem is that since upgrade to Apache 2.4, i have problem that on both of the caching scripts (xCache & Wincache) i can not use authentication because login dialogs keep popping up and do not accept my credentials.
I do really don't know if its due to upgrade (either Apache or PHP 3) |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Tue 12 Jun '12 17:01 Post subject: |
|
|
Is it about to disable authentication process in Wincache?
1
Quote: |
My initial (strange) problem is that since upgrade to Apache 2.4, i have problem that on both of the caching scripts (xCache & Wincache) i can not use authentication because login dialogs keep popping up and do not accept my credentials. |
Problem witch authorization exists because you use php-cgi and headers are not processed to script
eq add to .htttaccess this rule and authorization shuld be work fine
Quote: |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] |
http://www.google.com/search?q=[E%3DHTTP_AUTHORIZATION%3A%25{HTTP%3AAuthorization}%2CL]&ie=utf-8&oe=utf-8&aq=t |
|
Back to top |
|
pivey
Joined: 06 May 2012 Posts: 12 Location: Greece
|
Posted: Tue 12 Jun '12 17:31 Post subject: |
|
|
Quote: | eq add to .htttaccess this rule and authorization shuld be work fine |
Quote: | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] |
Exactly this did the trick Kanashii
Did not even know that php-cgi does not process headers.
Thank you again. Have a nice day |
|
Back to top |
|
Kanashii
Joined: 17 Jul 2006 Posts: 155 Location: Porando
|
Posted: Tue 12 Jun '12 23:43 Post subject: |
|
|
I has the same problem faw years ago
Greece nice place sometimes i miss this country |
|
Back to top |
|
pivey
Joined: 06 May 2012 Posts: 12 Location: Greece
|
Posted: Thu 14 Jun '12 14:06 Post subject: |
|
|
Yes, indeed.. it's beautiful to live here. Sun, girls, beer
Thx alot again |
|
Back to top |
|