![]() |
Readout domainslist for webalizer - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Update/Upgrade (/forum-44.html) +--- Thread: Readout domainslist for webalizer (/thread-6568.html) |
Readout domainslist for webalizer - topmusic - 04-29-2009 11:55 PM Hello, I recently upgraded from vhcs2 to ispcp, with vhcs2 my customers have awstats and webalizer, i still want to offer them both so i manage to run them. With vhcs there was a script for reading out the domainslist, this script isn't working with ispcp, so is there a way to do the same ? I had also been looking on the german forum but there isn't any script for ispcp either. Thx in advance RE: Readout domainslist for webalizer - BeNe - 04-30-2009 12:51 AM You only need the Domains ? Best would be to write a small scipt with a SQL Query. Greez BeNe RE: Readout domainslist for webalizer - topmusic - 04-30-2009 01:08 AM (04-30-2009 12:51 AM)BeNe Wrote: You only need the Domains ? Well i have a script with SQL Query from vhcs, but that isn't working with the common-ispcp.pl file. RE: Readout domainslist for webalizer - BeNe - 04-30-2009 01:11 AM I never had a system with VHCS running on it ![]() Can you post it here or upload anywhere so that we can have a look ? Greez BeNe RE: Readout domainslist for webalizer - rbtux - 04-30-2009 01:16 AM when all customers have all services in ispcp you could read the file /etc/postfix/ispcp/domains... as simple approach... RE: Readout domainslist for webalizer - topmusic - 05-02-2009 10:00 PM (04-30-2009 01:16 AM)rbtux Wrote: when all customers have all services in ispcp you could read the file /etc/postfix/ispcp/domains... as simple approach... That domains file differs from the 1 that is created by the script. here are the files that are be used to readout the domainlist in the vhcs2 system. webalizer.cron Code: #!/bin/bash and the vhcs2-get-domain.pl Code: #!/usr/bin/perl -w hope you have enough or else i put the files online. i already changed the lines containing vhcs to ispcp, that is the same for the file 'ispcp_common_code.pl' the original you can get at http://www.top-music.org/ispcp/files/vhcs2_common_code.zip kind regards. RE: Readout domainslist for webalizer - topmusic - 05-11-2009 05:36 AM Well i did some research about that perl scripting myself and i have wrote a new script that will be running from the webalizer.cron file. Create a file in /var/www/ispcp/engine/ ispcp-get-domain.pl Code: #!/usr/bin/perl -w So this little script creates a new domains file in the /etc/webalizer directory, wherein all the domains are put that are running on your ispcp server. RE: Readout domainslist for webalizer - help40 - 03-07-2010 10:36 PM a little offtopic about webalizer what about protecting "westats" directory automaticly ? so it is not word accessable |