View Single Post
  #1  
Old 30th January 2009, 16:35
dvazart dvazart is offline
Junior Member
 
Join Date: Dec 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default ISPConfig 2.2.29 webalizer awstats problem

From : http://www.howtoforge.com/forums/showthread.php?t=7293
------------------------------------------------------------------------------------------------------

I'm using ISPConfig 2.2.29 but i don't have a web.log file in my web directory, i only have an error.log file...

ls /var/www/web1/log/
Code:
error.log
And i think is normal when i look this :

nano /etc/apache2/vhosts/Vhosts_ispconfig.conf
Code:
<VirtualHost 192.168.1.200:80>
ServerName www.daniel.org:80
ServerAdmin webmaster@daniel.org
DocumentRoot /var/www/web2/web
ServerAlias daniel.org
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web2/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web2/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web2/user/$1/web/$3
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
  RewriteRule .* - [F]
</IfModule>
</VirtualHost>
So... thats may be a bug in ISPConfig 2.2.29 are you forget to include this file in the vhost config ?? OR you have to modify your AWstats script....

I found this... In ISPConfig 2.2.27 (awstats and webalizer are working ok) :

ls -l log/
Code:
total 4
drwxr-xr-x 3 web2_daniel web2 4096 2008-11-19 00:30 2008
-rw-r--r-- 1 web2_daniel web2    0 2008-11-18 09:35 error.log
lrwxrwxrwx 1 web2_daniel web2   45 2008-11-19 00:30 web.log -> /var/www/www.daniel.local/log/2008/11/web.log
But in ISPConfig 2.2.29 Nothing (no awstats, no webalizer, no web.log).

ISPConfig 2.2.27 :

grep -r "web.log" /root/
Code:
/root/ispconfig/scripts/shell/logs.php:        return "$webroot/$virtual_host/log/$jahr/$monat/web.log";
/root/ispconfig/scripts/shell/logs.php:                if(@readlink("$webroot/$virtual_host/log/web.log") != get_filename($virtual_host)) {
/root/ispconfig/scripts/shell/logs.php:                        if(is_link("$webroot/$virtual_host/log/web.log")) @unlink("$webroot/$virtual_host/log/web.log");
/root/ispconfig/scripts/shell/logs.php:                        @symlink(get_filename($virtual_host),"$webroot/$virtual_host/log/web.log");
ISPConfig 2.2.29 :

grep -r "web.log" /root/
Code:
/root/ispconfig/scripts/shell/logs.php:        return "$webroot/$virtual_host/log/$jahr/$monat/web.log";
/root/ispconfig/scripts/shell/logs.php:                if(@readlink("$webroot/$virtual_host/log/web.log") != get_filename($virtual_host)) {
/root/ispconfig/scripts/shell/logs.php:                        if(is_link("$webroot/$virtual_host/log/web.log")) @unlink("$webroot/$virtual_host/log/web.log");
/root/ispconfig/scripts/shell/logs.php:                        @symlink(get_filename($virtual_host),"$webroot/$virtual_host/log/web.log");
All seems to be OK.... no ?
Reply With Quote
Sponsored Links