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