Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 22:16:31

Author Topic: Stats password problem  (Read 6936 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Stats password problem
« on: 2013-06-15, 04:57:28 »
Greetings!  Thank you for kloxo fork - I use it everyday.

I am using Kloxo-MR 6.5.0-f

When I try to add password protection for stats page for website example.com I get this message:

Error: Access to statistics is only allowed from an authenticated
session to authenticated users.
Setup ('/etc/awstats/awstats.example.com.conf' file, web
server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).

I have reset apache, rebooted.  Tried changing password - nothing happens.

I am never presented with a password dialog box.

Please advise.
Thank you
Chris
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Stats password problem
« Reply #1 on: 2013-06-15, 12:40:46 »
That mean stats protect in Kloxo-MR. As I know, not possible access to dirprotect from browser.

No information from awstats how to access dirprotect.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Stats password problem
« Reply #2 on: 2013-06-15, 22:35:13 »
I am sorry if I was misunderstood.

I used the stats protection icon and entered a password in the dialog - clicked update.  After doing so I get nothing but the error.

Is this function not working in kloxo mr?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Stats password problem
« Reply #3 on: 2013-06-15, 22:42:49 »
Nothing change from about it since Kloxo 6.1.12. Look like the same issue as Kloxo 6.1.12.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Stats password problem
« Reply #4 on: 2013-06-15, 22:54:35 »
Is there a work around?  I do not want my stats pages availabale to public (anyone who figures out I am running Kloxo).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Stats password problem
« Reply #5 on: 2013-06-15, 23:01:09 »
No planning for access from browser at this moments for dirprotect.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Stats password problem
« Reply #6 on: 2013-06-17, 01:07:37 »
MR - I have found the bug as to why stats protection does not work.

In the domain conf file the location entry is wrong.  it puts it as /stats/ and it has to be /awstats/ secondly - htpasswd file __stats is not in the location specified. changed to correct location.

Bingo - stats page work behind password protection.

Please advise which .php file in kloxo updates the domain conf files so I can make changes and will post all changes needed here for you to add to your files.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Stats password problem
« Reply #7 on: 2013-06-17, 01:17:47 »
Also - owner of __stats file was admin:apache and I could not get it to work with those ownerships.

Had to be apache:apache.

Then all worked perfectly. :smile:
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Stats password problem
« Reply #8 on: 2013-06-17, 01:55:18 »
Quote from: "chrisf"
MR - I have found the bug as to why stats protection does not work.

In the domain conf file the location entry is wrong.  it puts it as /stats/ and it has to be /awstats/ secondly - htpasswd file __stats is not in the location specified. changed to correct location.

Bingo - stats page work behind password protection.

Please advise which .php file in kloxo updates the domain conf files so I can make changes and will post all changes needed here for you to add to your files.
Look inside /home/apache/conf/domains for domains config and modified custom.defaults.conf.tpl (copy from default.conf.tpl) and custom.domains.conf.tpl (domains.conf.tpl) insdie /home/apache/tpl. Kloxo-MR using template-based config instead direct modified Kloxo-MR code.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: Stats password problem
« Reply #9 on: 2013-06-17, 02:59:16 »
Okay - before I do want to make sure I understand completely.

Copy the default files (in the same directory) and add "custom." in front of them - any changes made in this files will be used by kloxo cp and won't be affected by future update?

Secondly - where do you htpasswd and make the __stats file.  I need to add in chown apache:apache into the code so this is all seamless and automated :smile:

I tried to password protect a directory and the entire domain broke.  Going to do more testing now.

Trying to work out the kinks before I go live.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Stats password problem
« Reply #10 on: 2013-06-17, 03:17:39 »
For ownership you can trace from /script/fix-chownchmod.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Stats password problem
« Reply #11 on: 2013-06-17, 03:26:40 »
Sorry, look inside /usr/local/lxlabs/kloxo/httpdocs/lib/domain/web/driver/dirprotect__lib.php
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.08 seconds with 18 queries.

web stats analysis