Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 11th January 2010, 08:57
savago savago is offline
Member
 
Join Date: May 2008
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to savago
Default

Quote:
Originally Posted by falko View Post
Can you check the log directory of all your web sites and check if there's a web.log in it?

[root@server1 src]# cd /var/www/web1/log/
[root@server1 log]# ls -la
total 385260
drwxr-xr-x 4 web1_admin web1 4096 2010-01-02 00:30 .
drwxr-xr-x 10 web1_admin web1 4096 2010-01-07 00:23 ..
drwxr-xr-x 3 web1_admin web1 4096 2009-12-20 00:30 2009
drwxr-xr-x 3 web1_admin web1 4096 2010-01-02 00:30 2010
-rw-r--r-- 1 web1_admin web1 394482111 2010-01-11 08:22 error.log
-r-------- 1 web1_admin web1 0 2009-12-19 11:46 .no_delete
lrwxrwxrwx 1 web1_admin web1 43 2010-01-02 00:30 web.log -> /var/www/www.sitename1.com/log/2010/01/web.log
[root@server1 log]# cd /var/www/web6/log/
[root@server1 log]# ls -la
total 764
drwxr-xr-x 4 web6_admin web6 4096 2010-01-02 00:30 .
drwxr-xr-x 9 web6_admin web6 4096 2009-12-31 11:29 ..
drwxr-xr-x 3 web6_admin web6 4096 2009-12-23 00:30 2009
drwxr-xr-x 3 web6_admin web6 4096 2010-01-02 00:30 2010
-rw-r--r-- 1 web6_admin web6 759965 2010-01-11 08:54 error.log
-r-------- 1 web6_admin web6 0 2009-12-22 23:11 .no_delete
lrwxrwxrwx 1 web6_admin web6 44 2010-01-02 00:30 web.log -> /var/www/www.sitename2.net/log/2010/01/web.log
[root@server1 log]# cd /var/www/web5/log/
[root@server1 log]# ls -la
total 272
drwxr-xr-x 4 web5_info web5 4096 2010-01-02 00:30 .
drwxr-xr-x 9 web5_info web5 4096 2010-01-06 18:19 ..
drwxr-xr-x 3 web5_info web5 4096 2009-12-22 00:30 2009
drwxr-xr-x 3 web5_info web5 4096 2010-01-02 00:30 2010
-rw-r--r-- 1 web5_info web5 255592 2010-01-11 08:52 error.log
-r-------- 1 web5_info web5 0 2009-12-21 22:18 .no_delete
lrwxrwxrwx 1 web5_info web5 42 2010-01-02 00:30 web.log -> /var/www/www.sitename3.net/log/2010/01/web.log
Reply With Quote
Sponsored Links
  #12  
Old 12th January 2010, 15:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

What are the outputs of
Code:
ls -la/var/www/www.sitename1.com/log/2010/01/
ls -la/var/www/www.sitename2.com/log/2010/01/
ls -la/var/www/www.sitename3.com/log/2010/01/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #13  
Old 12th January 2010, 17:42
savago savago is offline
Member
 
Join Date: May 2008
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to savago
Default

Quote:
Originally Posted by falko View Post
What are the outputs of
Code:
ls -la/var/www/www.sitename1.com/log/2010/01/
ls -la/var/www/www.sitename2.com/log/2010/01/
ls -la/var/www/www.sitename3.com/log/2010/01/
?

total 6436
drwxr-xr-x 2 web1_admin web1 4096 2010-01-02 00:30 .
drwxr-xr-x 3 web1_admin web1 4096 2010-01-02 00:30 ..
-rw-r--r-- 1 web1_admin web1 6577308 2010-01-12 00:30 web.log


drwxr-xr-x 2 web5_info web5 4096 2010-01-02 00:30 .
drwxr-xr-x 3 web5_info web5 4096 2010-01-02 00:30 ..
-rw-r--r-- 1 web5_info web5 17609158 2010-01-12 00:30 web.log

drwxr-xr-x 2 web6_admin web6 4096 2010-01-02 00:30 .
drwxr-xr-x 3 web6_admin web6 4096 2010-01-02 00:30 ..
-rw-r--r-- 1 web6_admin web6 1439360 2010-01-12 00:30 web.log
Reply With Quote
  #14  
Old 13th January 2010, 15:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Looks ok. I have no idea what's going wrong...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #15  
Old 7th August 2010, 12:30
savago savago is offline
Member
 
Join Date: May 2008
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to savago
Default

Quote:
Originally Posted by falko View Post
Looks ok. I have no idea what's going wrong...
Well

After updating to 2.2.36 problems still exist:
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php
grep: /var/log/xferlog.0: No such file or directory
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php
grep: /var/log/maillog.0: No such file or directory
/bin/awk
/bin/awk
/bin/awk
/bin/awk
/bin/awk
And some news :
Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125

Warning: asort() expects parameter 1 to be array, null given in /root/ispconfig/scripts/shell/logs.php on line 172

Warning: Invalid argument supplied for foreach() in /root/ispconfig/scripts/shell/logs.php on line 173
Code:
cd /var/log/httpd
[root@server1 httpd]# ls 
access_log                     ispconfig_access_log-20100221    ispconfig_access_log_2010_06_06  ispconfig_access_log_2010_06_27  ispconfig_access_log_2010_07_17  ispconfig_access_log_2010_08_04
access_log-20100711            ispconfig_access_log-20100228    ispconfig_access_log_2010_06_07  ispconfig_access_log_2010_06_28  ispconfig_access_log_2010_07_18  ispconfig_access_log_2010_08_05
access_log-20100718            ispconfig_access_log-20100307    ispconfig_access_log_2010_06_08  ispconfig_access_log_2010_06_29  ispconfig_access_log-20100718    ispconfig_access_log_2010_08_06
access_log-20100725            ispconfig_access_log-20100314    ispconfig_access_log_2010_06_09  ispconfig_access_log_2010_06_30  ispconfig_access_log_2010_07_19  ispconfig_access_log_2010_08_07
access_log-20100801            ispconfig_access_log-20100321    ispconfig_access_log_2010_06_10  ispconfig_access_log_2010_07_01  ispconfig_access_log_2010_07_20  ssl_access_log
eaccelerator_log               ispconfig_access_log-20100328    ispconfig_access_log_2010_06_11  ispconfig_access_log_2010_07_02  ispconfig_access_log_2010_07_21  ssl_access_log-20100711
error_log                      ispconfig_access_log-20100404    ispconfig_access_log_2010_06_12  ispconfig_access_log_2010_07_03  ispconfig_access_log_2010_07_22  ssl_access_log-20100718
error_log-20100711             ispconfig_access_log-20100411    ispconfig_access_log_2010_06_13  ispconfig_access_log_2010_07_04  ispconfig_access_log_2010_07_23  ssl_access_log-20100725
error_log-20100718             ispconfig_access_log-20100418    ispconfig_access_log_2010_06_14  ispconfig_access_log_2010_07_05  ispconfig_access_log_2010_07_24  ssl_access_log-20100805
error_log-20100725             ispconfig_access_log-20100425    ispconfig_access_log_2010_06_15  ispconfig_access_log_2010_07_06  ispconfig_access_log_2010_07_25  ssl_error_log
error_log-20100801             ispconfig_access_log-20100502    ispconfig_access_log_2010_06_16  ispconfig_access_log_2010_07_07  ispconfig_access_log-20100725    ssl_error_log-20100711
ispconfig_access_log           ispconfig_access_log-20100509    ispconfig_access_log_2010_06_17  ispconfig_access_log_2010_07_08  ispconfig_access_log_2010_07_26  ssl_error_log-20100718
ispconfig_access_log-20091220  ispconfig_access_log-20100516    ispconfig_access_log_2010_06_18  ispconfig_access_log_2010_07_09  ispconfig_access_log_2010_07_27  ssl_error_log-20100725
ispconfig_access_log-20091227  ispconfig_access_log-20100523    ispconfig_access_log_2010_06_19  ispconfig_access_log_2010_07_10  ispconfig_access_log_2010_07_28  ssl_error_log-20100801
ispconfig_access_log-20100103  ispconfig_access_log_2010_05_30  ispconfig_access_log_2010_06_20  ispconfig_access_log_2010_07_11  ispconfig_access_log_2010_07_29  ssl_request_log
ispconfig_access_log-20100110  ispconfig_access_log_2010_05_31  ispconfig_access_log_2010_06_21  ispconfig_access_log-20100711    ispconfig_access_log_2010_07_30  ssl_request_log-20100711
ispconfig_access_log-20100117  ispconfig_access_log_2010_06_01  ispconfig_access_log_2010_06_22  ispconfig_access_log_2010_07_12  ispconfig_access_log_2010_07_31  ssl_request_log-20100718
ispconfig_access_log-20100124  ispconfig_access_log_2010_06_02  ispconfig_access_log_2010_06_23  ispconfig_access_log_2010_07_13  ispconfig_access_log_2010_08_01  ssl_request_log-20100725
ispconfig_access_log-20100131  ispconfig_access_log_2010_06_03  ispconfig_access_log_2010_06_24  ispconfig_access_log_2010_07_14  ispconfig_access_log-20100801    ssl_request_log-20100805
ispconfig_access_log-20100207  ispconfig_access_log_2010_06_04  ispconfig_access_log_2010_06_25  ispconfig_access_log_2010_07_15  ispconfig_access_log_2010_08_02
ispconfig_access_log-20100214  ispconfig_access_log_2010_06_05  ispconfig_access_log_2010_06_26  ispconfig_access_log_2010_07_16  ispconfig_access_log_2010_08_03
[root@server1 httpd]#
P.S
Devels, ples. resolve this errors
Reply With Quote
  #16  
Old 1st September 2010, 02:14
oriongr oriongr is offline
Member
 
Join Date: Nov 2007
Posts: 38
Thanks: 29
Thanked 3 Times in 3 Posts
Default

I have the same error when I run
/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php
Any ideas why?
Reply With Quote
  #17  
Old 10th October 2010, 14:04
lizzarde lizzarde is offline
Junior Member
 
Join Date: Oct 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I have the same problem as in previous two posts. The Webalizer gets stats OK but the ispconfig_acces_log files after that are not purged. After running through the code I found where may be the problem:

line 165 in logs.php:
Code:
if (preg_match('/^'.basename($dir).'_/', $file)) {
change to this code:
Code:
if (preg_match('/^ispconfig_access_log_/', $file)) {
Now the script gets old logs filenames correctly and delete them.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Webalizer & Fedora8 : blocked stats Vaddiszno Developers' Forum 2 21st January 2009 20:27
Error on install igbe Installation/Configuration 7 28th February 2007 23:55
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 18:17
Ubuntu Installation Fails - ISPConfig mateo107 Installation/Configuration 5 9th March 2006 08:54
Logging in to isp config Jrdgames General 43 6th March 2006 20:04


All times are GMT +2. The time now is 15:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.