logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: WINCACHE login dialog keeps popping up
Author
pivey



Joined: 06 May 2012
Posts: 12
Location: Greece

PostPosted: Fri 18 May '12 16:13    Post subject: WINCACHE login dialog keeps popping up Reply with quote

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

PostPosted: Sun 20 May '12 7:26    Post subject: Reply with quote

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

PostPosted: Fri 08 Jun '12 21:24    Post subject: Reply with 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.

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

PostPosted: Sun 10 Jun '12 15:59    Post subject: Reply with quote

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

PostPosted: Tue 12 Jun '12 11:49    Post subject: Reply with quote

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

PostPosted: Tue 12 Jun '12 17:01    Post subject: Reply with quote

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

PostPosted: Tue 12 Jun '12 17:31    Post subject: Reply with quote

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 Wink
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

PostPosted: Tue 12 Jun '12 23:43    Post subject: Reply with quote

I has the same problem faw years ago

Greece nice place sometimes i miss this country Smile
Back to top
pivey



Joined: 06 May 2012
Posts: 12
Location: Greece

PostPosted: Thu 14 Jun '12 14:06    Post subject: Reply with quote

Yes, indeed.. it's beautiful to live here. Sun, girls, beer Mr. Green
Thx alot again
Back to top


Reply to topic   Topic: WINCACHE login dialog keeps popping up View previous topic :: View next topic
Post new topic   Forum Index -> Other Software