View Single Post
  #1  
Old 21st June 2011, 13:34
olieb olieb is offline
Junior Member
 
Join Date: Jun 2011
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Cool ISPconfig3 and webalizer create confusion.

Following the Howto: http://www.howtoforge.com/perfect-se...04-ispconfig-3 I set up my server as: server1.domain1.com. Created client1 with domain1.com. Created my website on it. No issues.
Then I created 2 more domains for client1.
Initially I could only access the first website with Filezilla over SFTP-SSH. After I changed the owners of web2 and web3 to web1:client1, I could also access these sites with the same username as defined for web1.
Code:
....
drwxr-x--x 8 web1 client1 4096 2011-06-19 00:30 web1
drwxr-x--x 7 web1 client1 4096 2011-06-20 14:35 web2
drwxr-x--x 7 web1 client1 4096 2011-06-20 14:35 web3
Now I am looking at the webalizer part of IspConfig:
Code:
root@server1:~# ls -l /var/log/ispconfig/httpd/
drwxr-xr-x 2 root root    4096 2011-06-21 08:56 domain1.com
drwxr-xr-x 2 root root    4096 2011-06-21 10:21 server1.domain1.com
drwxr-xr-x 2 root root    4096 2011-06-21 02:43 domain2.com
drwxr-xr-x 2 web1 client1 4096 2011-06-21 04:04 domain3.com
Looking to the contents of the individual domain webalizer.conf files, I get confused.
Domain1:
Code:
LogFile /var/log/apache2/access.log
#LogType	clf
OutputDir /var/www/webalizer
HistoryName /var/www/clients/client1/web1/web/stats/webalizer.hist
Incremental yes
IncrementalName /var/www/clients/client1/web1/web/stats/webalizer.current
ReportTitle Usage statistics for
HostName server1.domain1.com
Domain2:
Code:
LogFile /var/log/apache2/domain1.com/access.log
LogType	clf
OutputDir /var/www/webalizer
HistoryName /var/www/clients/client1/web2/web/stats/webalizer.hist
Incremental yes
IncrementalName /var/www/clients/client1/web2/web/stats/webalizer.current
ReportTitle Usage statistics for
HostName server1.domain1.com
for domain3:
Code:
LogFile /var/log/apache2/domain1.com/access.log
LogType	clf
OutputDir /var/www/webalizer
HistoryName /var/www/clients/client1/web3/web/stats/webalizer.hist
Incremental yes
IncrementalName /var/www/clients/client1/web3/web/stats/webalizer.current
ReportTitle Usage statistics for
HostName server1.domain1.com
As far as I can see these 3 run daily at 00.30 hrs, and output goes into /webx/web/stats

Sofar I have in /etc/webalizer 1 webalizer.conf file for domain1.
Code:
LogFile /var/log/apache2/domain1.com/access.log
LogType	clf
OutputDir /var/www/webalizer
HistoryName     webalizer.hist
Incremental     yes
IncrementalName webalizer.current
ReportTitle Usage statistics for
HostName server1.domain1.com
This is run through a cron job outside IspConfig on an hourly basis, while I optimize the report.

My questions:
1. Why did I have to set the server hostname to server1.domain1.com. Why not to just server1?
2. Why does domain3 have owners: web1:cllient1 and the others root:root. Should I change these manually and if yes to what?
3. What should I change in the webalizer.conf files for the 3 domains? They all have the same outputdir as my webalizer.conf file in /etc/webalizer. Domain 2 and 3 use the logfile from domain1 and domain1 uses the logfile from apache2.

Hope you understand why I am confused.
Reply With Quote
Sponsored Links