Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #91  
Old 3rd June 2006, 16:13
nenad nenad is offline
Senior Member
 
Join Date: Nov 2005
Location: Novi Sad, Serbia
Posts: 414
Thanks: 13
Thanked 5 Times in 5 Posts
Default

Is there something wrong within this crontab file?

30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
__________________
Nenad Bulatovic
---------------
Debian Lenny & ISPConfig 3
Reply With Quote
Sponsored Links
  #92  
Old 3rd June 2006, 22:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

No, it's looking good.
__________________
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
  #93  
Old 4th June 2006, 02:01
Mountainman Mountainman is offline
Junior Member
 
Join Date: May 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Got a similar/same problem here...

I installed ISPConfig on Debian Sarge according to the Perfect Setup Guide.

When I want to view website statistics ( and yes the site has been visited...), I go to http://website.com/stats and log in with a correct Username / Pass. After I logged in I'm presented with a 403.

When I look into the stats-dir, it appears to be empty ( together with it's web# directory ).

I did a grep on cron-errors in /var/log/syslog and /var/log/messages, in syslog it says:

Code:
Jun  4 00:02:01 highmountain /USR/SBIN/CRON[9720]: (logcheck) CMD (   if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi)
Jun  4 00:09:01 highmountain /USR/SBIN/CRON[10587]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Jun  4 00:17:01 highmountain /USR/SBIN/CRON[10706]: (root) CMD (   run-parts --report /etc/cron.hourly)
Jun  4 00:39:01 highmountain /USR/SBIN/CRON[10999]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Jun  4 01:02:01 highmountain /USR/SBIN/CRON[11308]: (logcheck) CMD (   if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi)
Jun  4 01:09:01 highmountain /USR/SBIN/CRON[12159]: (root) CMD (  [ -d /var/lib/php4 ] && find /var/lib/php4/ -type f -cmin +$(/usr/lib/php4/maxlifetime) -print0 | xargs -r -0 rm)
Jun  4 01:17:01 highmountain /USR/SBIN/CRON[12274]: (root) CMD (   run-parts --report /etc/cron.hourly)
Jun  4 01:30:22 highmountain crontab[12466]: (root) BEGIN EDIT (root)
Jun  4 01:31:03 highmountain crontab[12466]: (root) REPLACE (root)
Jun  4 01:31:03 highmountain crontab[12466]: (root) END EDIT (root)
The grep on /var/log/messages doesn't show anything.

Then I did the /etc/init.d/cron stop and the pkill cron, crontab -e and a save of the crontab. After 24 hours stats still won't compile.

When I do a :

Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
The shell doesn't give any feedback...
Reply With Quote
  #94  
Old 4th June 2006, 10:34
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Quote:
Originally Posted by Mountainman
When I do a :

Code:
/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
The shell doesn't give any feedback...
How long did you wait? It may take half an hour or longer, depending on the traffic of your sites. Did the cursor return?

Please post the output of:

ls -la /var/log/httpd
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #95  
Old 4th June 2006, 15:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Is webalizer installed? What's the output of
Code:
which webalizer
?
__________________
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
  #96  
Old 4th June 2006, 20:31
Mountainman Mountainman is offline
Junior Member
 
Join Date: May 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

@ Till:

the cursor returned almost instantly

ls -la /var/log/httpd:
Code:
total 9184
drwxr-xr-x   2 root root    4096 2006-06-04 02:53 .
drwxr-xr-x  13 root root    4096 2006-06-03 06:25 ..
lrwxrwxrwx   1 root root      46 2006-06-04 02:53 ispconfig_access_log -> /var/l                                                 og/httpd/ispconfig_access_log_2006_06_04
-rw-r--r--   1 root root    5269 2006-05-29 23:43 ispconfig_access_log_2006_05_2                                                 9
-rw-r--r--   1 root root 1006171 2006-05-30 23:59 ispconfig_access_log_2006_05_3                                                 0
-rw-r--r--   1 root root 2486815 2006-05-31 23:59 ispconfig_access_log_2006_05_3                                                 1
-rw-r--r--   1 root root 3364061 2006-06-01 23:57 ispconfig_access_log_2006_06_0                                                 1
-rw-r--r--   1 root root  940818 2006-06-02 23:19 ispconfig_access_log_2006_06_0                                                 2
-rw-r--r--   1 root root  671685 2006-06-03 23:56 ispconfig_access_log_2006_06_0                                                 3
-rw-r--r--   1 root root  883059 2006-06-04 20:26 ispconfig_access_log_2006_06_0                                                 4
@Falko:

yes I've got webalizer installed;

which webalizer:
Code:
/usr/bin/webalizer
Reply With Quote
  #97  
Old 5th June 2006, 11:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please run the script:

/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

Did you get any errors? If not, run the webalizer script afterwards:

/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #98  
Old 5th June 2006, 12:07
Mountainman Mountainman is offline
Junior Member
 
Join Date: May 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Till,

I did get some errors :

Code:
Warning: include(/home/admispconfig/ispconfig/lib/config.inc.php): failed to open stream: Permission denied in /root/ispconfig/scripts/lib/config.inc.php on line 30

Warning: include(): Failed opening '/home/admispconfig/ispconfig/lib/config.inc.php' for inclusion (include_path='.:') in /root/ispconfig/scripts/lib/config.inc.php on line 30
Could not connect to MySQL server!
What should i do?
Reply With Quote
  #99  
Old 5th June 2006, 14:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
ls -la /home/admispconfig/ispconfig/lib
?
__________________
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
  #100  
Old 5th June 2006, 14:07
Mountainman Mountainman is offline
Junior Member
 
Join Date: May 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Code:
highmountain:/# ls -la /home/admispconfig/ispconfig/lib
total 76
drwxr-xr-x  6 admispconfig admispconfig  4096 2006-05-29 11:46 .
drwxr-xr-x  8 admispconfig admispconfig  4096 2006-06-05 13:08 ..
-rwxr-xr-x  1 admispconfig admispconfig  6340 2006-05-22 22:17 app.inc.php
-rwxr-xr-x  1 admispconfig admispconfig  1768 2006-05-22 22:17 banner.inc.php
drwxr-xr-x  2 admispconfig admispconfig  4096 2006-05-22 22:17 classes
-rw-------  1 admispconfig admispconfig  6433 2006-05-29 11:46 config.inc.php
-rwxr-xr-x  1 admispconfig admispconfig   354 2006-05-22 22:17 copyright.inc.php
-rwxr-xr-x  1 admispconfig admispconfig  7502 2006-05-22 22:17 go_info.inc.php
drwxr-xr-x  2 admispconfig admispconfig  4096 2006-05-22 22:17 help
-rwxr-xr-x  1 admispconfig admispconfig   324 2006-05-22 22:17 index.php
drwxr-xr-x  2 admispconfig admispconfig  4096 2006-05-22 22:17 lang
drwxr-xr-x  2 admispconfig admispconfig  4096 2006-05-22 22:17 plugins
-rwxr-xr-x  1 admispconfig admispconfig     5 2006-05-22 22:17 preload.inc.php
-rwxr-xr-x  1 admispconfig admispconfig 11876 2006-05-22 22:17 session.inc.php
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 - Usage by Country statistics leno Installation/Configuration 3 28th April 2005 18:12


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


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