Login for webstats on Plesk

Login for webstats on Plesk

Open domain’s httpd.include (HTTPD_VHOSTS_D/domain/conf/httpd.include) file and search for something like:

"AuthType BasicAuthName “Domain statistics”AuthUserFile /var/www/vhosts/domain/pd/d..httpdocs@plesk-statrequire valid-user"

The above entry tells that access to web-stats page (/var/www/vhosts/domain/statistics) is restricted to valid-users specified within ‘AuthUserFile’.
So, create an encrypted password using htpasswd and append its output to ‘AuthUserFile’.
$ htpasswd -nb username userpass
>> /var/www/vhosts/domainName/pd/d..httpdocs@plesk-stat

Note: Don’t forget to use ‘>>’. Using one symbol (>) will erase existing entries.

Now, you should be able to login using username & userpass.

Source: mohammednv

Recommended buys!

0 comments