Post Reply  Post Thread 
Awstats password protection
Author Message
ghislain



Posts: 3
Group: Registered
Joined: Apr 2008
Status: Offline
Reputation: 0
Post: #31
RE: Awstats password protection

sorry i did not real 100% of this thread but awstats is just a page served by apache.

So why not use the directory protection module allready in ispcp and add a group 'awstats' to the protected directory setup and make a default user awstats/awstats ?

then by default you require a user in this group and this is done without mod perl of strange other dependancies , am i missleaded ?

regards,
Ghislain.

04-16-2008 09:48 PM
Find all posts by this user Quote this message in a reply
Eminos
Junior Member
*


Posts: 141
Group: Registered
Joined: Jan 2007
Status: Offline
Reputation: 0
Post: #32
RE: Awstats password protection

I really like Cube's solution:
http://www.isp-control.net/forum/awstats...l#pid23110

It's simple, and it gives us an integrated solution that can be enhanced. Sound great to me. And it seems simple to realize as well Smile

/E

04-23-2008 12:44 AM
Find all posts by this user Quote this message in a reply
Eminos
Junior Member
*


Posts: 141
Group: Registered
Joined: Jan 2007
Status: Offline
Reputation: 0
Post: #33
RE: Awstats password protection

Hi guys!

I just found this. Would it work for the awstats protection?

http://packages.dotdeb.org/dists/etch/li...uth-mysql/

/E

04-24-2008 08:52 PM
Find all posts by this user Quote this message in a reply
Cube
Documentation Team
***
Docu Team

Posts: 573
Group: Docu Team
Joined: Apr 2007
Status: Offline
Reputation: 7
Post: #34
RE: Awstats password protection

But it's not officially available for Etch (and perhaps for other distros also).

04-25-2008 05:29 AM
Find all posts by this user Quote this message in a reply
rauschr



Posts: 1
Group: Registered
Joined: May 2008
Status: Offline
Reputation: 0
Post: #35
RE: Awstats password protection

inserted into a .htaccess file

where is this file?

[code] PerlModule My::Auth

<Location /private>
PerlAccessHandler My::Auth::access_handler
...

This post was last modified: 05-13-2008 07:49 AM by rauschr.

05-13-2008 07:47 AM
Find all posts by this user Quote this message in a reply
momo
Junior Member
*


Posts: 22
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #36
RE: Awstats password protection

Is there any way to use BeNe solution + passing a variable path to AuthUserFile.

Preventing different user to log in others websites accounts.


Debian Etch
RC5 build 20080614
Updated from RC4

This post was last modified: 06-14-2008 12:48 AM by momo.

06-14-2008 12:46 AM
Find all posts by this user Quote this message in a reply
rycardo74
Newbie
*


Posts: 7
Group: Registered
Joined: Jun 2008
Status: Offline
Reputation: 0
Post: #37
RE: Awstats password protection final solutio!

Hello people I have god news ,Im found a solution for Awstats password protection simple on debian etch.

1- open a terminal of your machine


2- download libapache2-mod-auth-mysql from my site
# wget http://www.auyama.it/cfh.php?file=libapa...1_i386.deb


3- check the content of package (for security reasons)

#dpkg -I mysqlmod/libapache2-mod-auth-mysql_4.3.9-3.dotdeb.1_i386.deb
#dpkg -c mysqlmod/libapache2-mod-auth-mysql_4.3.9-3.dotdeb.1_i386.deb

4- install the package
#dpkg -i mysqlmod/libapache2-mod-auth-mysql_4.3.9-3.dotdeb.1_i386.deb

5 enable the module

#a2enmod auth_mysql

6- Restart apache
#/etc/init.d/apache2 restart

7- check if libapache2-mod-auth-mysql

apache2ctl -t -D DUMP_MODULES

this command give you alist of all modules enable
check if "auth_mysql_module (shared)" is present

8- now you have to enable the auth on your awstats apache2 config

9- edit this file "/etc/apache2/sites-enabled/01_awstats.conf with you"
prefer editor I'm use "#vi /path/filename"

and add this lines in top of the file

Code:
AuthMySQL_DefaultHost hostmane
AuthMySQL_DefaultUser mysqluser
AuthMySQL_DefaultPassword mysqlpassword


and this lines

Code:
AuthName        "AWStats auth"
AuthType        Basic
AuthUserFile /dev/null
AuthBasicAuthoritative Off
AuthMySQL_Host  localhost
AuthMySQL_DB    ispcp
AuthMySQL_Password_Table        admin
AuthMySQL_Username_Field        admin_name
AuthMySQL_Password_Field        admin_pass
AuthMySQL_Encryption_Types      PHP_MD5
<Limit POST GET >
require valid-user
</Limit>



between

Directory tags

"<Directory /usr/lib/cgi-bin></Directory>"

better if at the end

10- Restart apache
#/etc/init.d/apache2 restart

11- and enjoy!!!

06-14-2008 05:54 AM
Find all posts by this user Quote this message in a reply
BeNe
Moderator
*****


Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status: Offline
Reputation: 35
Post: #38
RE: Awstats password protection

Fine - thanks!
Is there also a 64-Bit Version availabe ?
The problem is that it cant be installed with apt-get and is not available on other Linux distros. But in the Debian case it looks ok.

Greez BeNe

06-16-2008 03:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Eminos
Junior Member
*


Posts: 141
Group: Registered
Joined: Jan 2007
Status: Offline
Reputation: 0
Post: #39
RE: Awstats password protection

BeNe Wrote:
The problem is that it cant be installed with apt-get...


Yes you can if you add the dotdeb repository to apt sources first.

/E

06-16-2008 03:36 AM
Find all posts by this user Quote this message in a reply
Cube
Documentation Team
***
Docu Team

Posts: 573
Group: Docu Team
Joined: Apr 2007
Status: Offline
Reputation: 7
Post: #40
RE: Awstats password protection

I have not tested this yet, but I think it is still necessary to modify the awstats-configs (AllowAccessFromWebToAuthenticatedUsersOnly / AllowAccessFromWebToFollowingAuthenticatedUsers) to avoid that the users can access their stats one another.

06-16-2008 04:00 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

| All rights reserved : isp-control.net |