Serg
16th September 2007, 13:07
Hello, everybody!
I'm using ISPConfig some weeks and can say, that is nice software, congradulation to developement team.
But there is a wider client wishes, and I must to solve some problems.
Preface.
There is standard ISPConfig installation.
Also there is port-based hosting due to plone/zope service on rank of ports 2XXX-2X10
Also there is another independend webserver with old feautures like MYSQL 4.0 and PHP4 (XAMPP powered) on port 85.
And I can(and make) multiplexing to all servers via squid proxy.
Main Apache2 now listen port 82.
Control ISPConfig Apache1.3 listen port 81.
Squid listen port 80 and work as transparent proxy according to simple acl rules.
All works fine, but statistics still not.
I reformat squid log outpot as ISPConfig log format.
There is one difference(example)
ISPConfig /var/log/httpd/ispconfig_access_2007_09_10 :
...GET /favicon.ico HTTP/...
Squid(I point squid log to same place and make needed symlink to it) :
...GET http://test.domain.net/favicon.ico HTTP/...
Then I point main apache2 log file to /dev/null
Squid log utilization is made by my script in cron at 00.01 am, it unlink ispconfig_access_log from old log, delete two-days-old log, creates new day log, put symlink to it and then reconfigure(force reload) squid.
But at morning I see two separate directory in /var/www with same name.(test.mydomain.com was created by ISPConfig panel)
One is test.mydomain.net - symlink, as known to /var/www/webuserID with old log, generating when apache2 stored log directly and belonging to virtual host test.mydomain.net
Second is real direcrory test.mydomain.net with new(not empty,right!) log, belonging to test site and generating from squid log.
First directory is owned by testclient:webuserID
Second is owned by root:root
Directory creation time is 00:30
Webalizer page operates with the old statistic, but all files in stat/ directory was rewritten in 04:00 am last day.
1.What happen? Why there are two separate dirs with same name(but one is symlink)?
And how I can tell script to write site log to correct dir/file(eq symlink)
2.Which process is starter of scripts/shell/logs.php ? In 00.30 as I understand?
It seems, it script run automatically by ... program
3. Can I run(for test purpose, of course, not on production host) logs.php script to see changes with logfiles?
testhost#php logs.php (or any parameters required?)
Big thnks for reply
I'm using ISPConfig some weeks and can say, that is nice software, congradulation to developement team.
But there is a wider client wishes, and I must to solve some problems.
Preface.
There is standard ISPConfig installation.
Also there is port-based hosting due to plone/zope service on rank of ports 2XXX-2X10
Also there is another independend webserver with old feautures like MYSQL 4.0 and PHP4 (XAMPP powered) on port 85.
And I can(and make) multiplexing to all servers via squid proxy.
Main Apache2 now listen port 82.
Control ISPConfig Apache1.3 listen port 81.
Squid listen port 80 and work as transparent proxy according to simple acl rules.
All works fine, but statistics still not.
I reformat squid log outpot as ISPConfig log format.
There is one difference(example)
ISPConfig /var/log/httpd/ispconfig_access_2007_09_10 :
...GET /favicon.ico HTTP/...
Squid(I point squid log to same place and make needed symlink to it) :
...GET http://test.domain.net/favicon.ico HTTP/...
Then I point main apache2 log file to /dev/null
Squid log utilization is made by my script in cron at 00.01 am, it unlink ispconfig_access_log from old log, delete two-days-old log, creates new day log, put symlink to it and then reconfigure(force reload) squid.
But at morning I see two separate directory in /var/www with same name.(test.mydomain.com was created by ISPConfig panel)
One is test.mydomain.net - symlink, as known to /var/www/webuserID with old log, generating when apache2 stored log directly and belonging to virtual host test.mydomain.net
Second is real direcrory test.mydomain.net with new(not empty,right!) log, belonging to test site and generating from squid log.
First directory is owned by testclient:webuserID
Second is owned by root:root
Directory creation time is 00:30
Webalizer page operates with the old statistic, but all files in stat/ directory was rewritten in 04:00 am last day.
1.What happen? Why there are two separate dirs with same name(but one is symlink)?
And how I can tell script to write site log to correct dir/file(eq symlink)
2.Which process is starter of scripts/shell/logs.php ? In 00.30 as I understand?
It seems, it script run automatically by ... program
3. Can I run(for test purpose, of course, not on production host) logs.php script to see changes with logfiles?
testhost#php logs.php (or any parameters required?)
Big thnks for reply