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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 14th March 2007, 23:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by LeoLinux
there is nothing logged about quota in /web or /web/user
The log files are in /var/www/web1/log, etc. They are the Apache access logs and error logs, so there's nothing about quota in them.

Quote:
Originally Posted by LeoLinux
antother problem I have is that if traffic for a site is exceeded the site is not reachable anymore - which is ok...but if I just rate it up from maybe 50MB Traffic to 500MB the site is still disabled. The question now..: do I have to wait until the end of the month until it will be accessable again?
There's a cron job running once per night that takes care about traffic limits. It should unblock the site.
__________________
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
Sponsored Links
  #12  
Old 15th March 2007, 01:20
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

no in those logs was nothing written about quota .... ;-/


I know - I also thought it would we ready after 4o'clock again - but it's still down ... ;-/

That's the error message copied which I just copied out of my browser:



Code:
Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

^^This was the message when my traffic exceeded for this site ... so I just setted it up to 500 MB and it's still down since a few days ago ... all the other sites are running great.
Do you know where to enable this site again without damaging rights and configs ;-) ?


Thanks!

Leander
Reply With Quote
  #13  
Old 15th March 2007, 16:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by LeoLinux
no in those logs was nothing written about quota .... ;-/
What I meant to say was - you can delete the Apache access logs and error logs so that you are within quota again.

I've just had a look at the /root/ispconfig/scripts/shell/traffic.php script - it unblocks sites only when a new month has begun.
But you can get your site working again by modifying this code near the beginning of the file:

PHP Code:
// Monatsanfang: gesperrte Webseiten zurücksetzen
if(date("m/Y", (time() - 86400)) != $month){
  if(
$suspended_webs $mod->db->queryAllRecords("SELECT * FROM isp_isp_web WHERE web_traffic_status = '2'")){
    foreach(
$suspended_webs as $suspended_web){
      if(
$admin_user $mod->db->queryOneRecord("SELECT isp_isp_user.user_username FROM isp_nodes, isp_dep, isp_isp_user WHERE isp_dep.parent_doc_id = '".$suspended_web['doc_id']."' AND isp_dep.parent_doctype_id = '".$web_doctype_id."' AND isp_dep.child_doc_id = isp_isp_user.doc_id AND isp_dep.child_doctype_id = '".$user_doctype_id."' AND isp_isp_user.user_admin = '1' AND isp_nodes.doc_id = isp_isp_user.doc_id AND isp_nodes.doctype_id = '".$user_doctype_id."' AND isp_nodes.status = '1'")){
        
$admin_user $admin_user['user_username'];
      } else {
        
$admin_user $isp_web->apache_user;
      }
      
exec("chown ".$admin_user." ".$webroot."/web".$suspended_web['doc_id']." &> /dev/null");
      
exec("chmod 755 ".$webroot."/web".$suspended_web['doc_id']." &> /dev/null");
      
$mod->db->query("UPDATE isp_isp_web SET web_traffic_status = '1' WHERE doc_id = '".$suspended_web['doc_id']."'");
    }
  }

__________________
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
  #14  
Old 6th April 2007, 16:25
LeoLinux LeoLinux is offline
Senior Member
 
Join Date: Jul 2006
Location: Ellwangen
Posts: 119
Thanks: 16
Thanked 0 Times in 0 Posts
Send a message via ICQ to LeoLinux
Default

Ok - that was exactly what I guessed.
So what kind of logs do I have to delete because I don't want to kill the other traffic rules for my other web costumers.

Thanks for your help!


Leander
Reply With Quote
  #15  
Old 7th April 2007, 15:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
 
Default

Quote:
Originally Posted by LeoLinux
So what kind of logs do I have to delete because I don't want to kill the other traffic rules for my other web costumers.
The logs are in /var/www/web[no]/log. But please delete only old log files, not the ones from the current month (because these are still in use).
__________________
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
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
Problems with copy & paste dspuser Server Operation 3 23rd May 2006 18:21
Quota doesn't work tom Installation/Configuration 9 13th April 2006 00:50
Quota on JFS raid1 problem- cant find filesystem Chaoticmass Server Operation 2 20th March 2006 00:03
Quota doesn't work chris82 HOWTO-Related Questions 16 20th February 2006 12:00
Syntax error in Quota? st2xo Installation/Configuration 2 13th February 2006 12:30


All times are GMT +2. The time now is 00:33.


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