PDA

View Full Version : Can't Login to /stats - Yes the stats have run, Yes, I'm using correct user/pass


bpmee
10th March 2007, 21:39
Hi All,

I've searched all over the forum for a reply to my problem, but most posts only address about 1/2 the problem...So here goes:

When I try to login to: www.mysite.com/stats WITH the correct user: web5_username and correct password I get a 401 "Authorisation" error...:confused:

Yes - more than 24 hours have passed and the webalizer script has run. There is log data, so this is not the issue.

Yes - the crontab contains the correct calls for the log processing script and the webalizer script.

I'm on Fedora Core 5, ISPConfig 2.2.10

Note:

When I delete all .htaccess files in the /var/www/web5/web/stats folders, the problem goes away and I am not prompted for login credentials.

But, this means my stats are unprotected!

Also, I tried looking at ownership of my sites using the ls -l command, here is a sample, note I name my sites: web5_domain[com|net|us|biz etc]




drwxr-xr-x 9 web227_gocom web227 4096 Mar 6 11:21 web227
drwxr-xr-x 8 web238_mynet web238 4096 Mar 6 04:00 web238
drwxr-xr-x 9 web246_879com web246 4096 Mar 6 04:00 web246
drwxr-xr-x 9 web254_afesnet web254 4096 Mar 10 10:19 web254
drwxr-xr-x 8 apache web255 4096 Mar 8 11:19 web255
drwxr-xr-x 8 apache web256 4096 Mar 8 11:16 web256
drwxr-xr-x 8 apache web257 4096 Mar 8 11:20 web257
drwxr-xr-x 8 apache web258 4096 Mar 6 04:00 web258



Despite different ownerships, I still can't login so this may not be the problem!

Thanks...

till
11th March 2007, 13:08
Please have a look at the error log of the website, which error is logged there when you try to authenticate to the stats directory?

bpmee
12th March 2007, 19:33
Hi Till/Falko/others:

Here is the error that is being sent to my log:


[Mon Mar 12 10:28:55 2007] [error] [client 200.6.60.31] user web301_blogsnet: authentication failure for "/stats": Password Mismatch
[Mon Mar 12 10:29:01 2007] [error] [client 200.6.60.31] user web301_blogsnet: authentication failure for "/stats": Password Mismatch



Not sure what Password Mismatch means????:confused:

falko
13th March 2007, 20:10
Not sure what Password Mismatch means????:confused:
You didn't use the correct password. You can try to set a new one in ISPConfig. But keep in mind that the .htpasswd file for the stats folder is updated only at 04.00h, so you won't be able to log in immediately.

bpmee
14th March 2007, 20:20
Hi Falko,

Thanks - I've changed some passwords, and will wait until tomorrow to see if they updated correctly.

tom
30th March 2007, 14:06
You didn't use the correct password. You can try to set a new one in ISPConfig. But keep in mind that the .htpasswd file for the stats folder is updated only at 04.00h, so you won't be able to log in immediately.If got the same situation. I've tried to run the script an 04.00h but still I cant log in the stats directory. This script I used:
/root/ispconfig/scripts/shell/webalizer.php &> /dev/null

falko
31st March 2007, 15:12
Is there anything in the stats directory? You can check with ls -la /path/to/stats

Also, stats are generated only if that web site has been accessed. If it hasn't been accessed, its access log is empty, and therefore no statistics are created.