Awstats password protection - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Development Area (/forum-1.html) +--- Forum: Suggestions (/forum-2.html) +--- Thread: Awstats password protection (/thread-1562.html) |
RE: Awstats password protection - BeNe - 10-28-2007 03:10 AM Good point, BUT there is the next package problem: Code: Starting web server (apache2)...Syntax error on line 21 of /etc/apache2/sites-enabled/01_awstats.conf: I checked many sites about mod_dbd and it seems that there is no mysql driver as package available for mod_dbd Can anyone give me a hint ? Greez BeNe RE: Awstats password protection - Cube - 11-01-2007 01:42 AM I've created a ticket: AWStats password protection (ticket 837) RE: Awstats password protection - ephigenie - 11-01-2007 02:38 AM yeah you're right - it seems as if the mysql license is not compatible with debian's ... so they didn't include the mysql driver ... this is bad. But i saw that in sid there's mod_auth_mysql again - but it did not make it into stable RE: Awstats password protection - jmeyerdo - 11-01-2007 05:26 AM Hi! Allow me one suggestion, please... Perhaps you can take into consideration which modules/technologies are compatible with most platforms/distros?! One example: With CentOS the "mod_fastcgi" is not standard and it takes higher efforts to find an (unofficial) RPM or to compile it manually. An authentication by .htaccess should be available on nearly all servers - even it might be harder to implement on isp-CP-side. Kind regards, keep up your good work, Jens RE: Awstats password protection - BeNe - 11-01-2007 06:40 AM Quote:An authentication by .htaccess should be available on nearly all serversOf course - .htaccess works, but is not really flexible and dynamic. I use .htaccess on my Server and i must every single user... A connect to the db would be very fine here. Quote:yeah you're right - it seems as if the mysql license is not compatible with debian's ...I found some compiled .deb files of mysql driver but they are damn buggy and apache2 sometimes does not start -> Segment fault... Greez BeNe RE: Awstats password protection - linux-guru - 12-23-2007 02:25 AM I did a (quite dirty) hack for enabling authentication of stats in static mode. At first, since mod_auth_mysql is not available on etch and dbd has no mysql-support, the only alternative is libapache2-mod-auth-pam which could be made using libpam-mysql. BUT: libpam-mysql has problems to support md5-password. So another "hack" is needed. Please see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=373834 When the new package is built, install it, and configure as follows: 1. Install libapache2-mod-auth-pam Code: apt-get install libapache2-mod-auth-pam -y 2. Create .htaccess e.g. in /var/www/ispcp/engine/awstats/ with the following content: Code: AuthPAM_Enabled on 3. Make /etc/pam.d/apache2 looking like this: Code: auth required pam_mysql.so user=root passwd=YOUR_PASS host=localhost db=ispcp table=admin usercolumn=admin_name passwdcolumn=admin_pass crypt=3 4. Edit /var/www/ispcp/engine/ispcp-dmn-mngr after (currently lines 1911-1921) Code: if ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes' && $main::cfg{'AWSTATS_MODE'} eq 1) { Code: if (! -e "$www_dir/$dmn_name/statistics/.htaccess") { Code: if ($main::cfg{'AWSTATS_ACTIVE'} eq 'yes' && $main::cfg{'AWSTATS_MODE'} eq 1) { 5. Tell ispcp that there are changes which are needed to be processed. Code: mysql -u root -p<password> 6. Run the update Code: /var/www/ispcp/engine/ispcp-rqst-mngr Now your users have protected stats which can only be seen through authentication with their ispcp-admin-login and the corresponding password. Note: If one knows another hosting on this machine, he/she it is able to see the other users stats while entering his own credentials! Feedback is welcome! :-) RE: Awstats password protection - Mike - 12-26-2007 07:35 AM Another Method would be over PHP-CURL... so we would be able to check the siteconfig with the user (from DB)... PHP Code: header('WWW-Authenticate: Basic realm="Domain Statistics"'); RE: Awstats password protection - divion - 01-09-2008 03:21 PM Happy to see you all here working with a non dieing version of VHCS. To add my help to this section ( havent tested ispcp yet (dont blame me i found it today) ) i was working with 2 scripts that were updating the stats, making new conf files and copying stats to users dir for backup. If any of this would be helpfull to anyone send me a msg to post them. Not to mention ( Debian 3.1 (Not updated this either)) RE: Awstats password protection - NoFutureKid - 01-23-2008 04:06 AM What about mod_authn_dbi (http://mod-auth.sourceforge.net)? RE: Awstats password protection - BeNe - 01-23-2008 05:50 AM Never heard about it Maybe you can try to get it running ? I use a dirty workaround with a .htaccess in the Apache Awstats Directive. But it works... Greez BeNe |