The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mod_rewrite error

Discussion in 'General Discussion' started by swampy, Jan 14, 2005.

  1. swampy

    swampy Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    0
    Hi I am having problems with apache it keeps crashing taking the server down when apache restarts i cannot log in to whm until i ssh to the server and restart cpanel here are some errors that i get in the apache log I could do with a little help with these please



    mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.

    child process 3234 still did not exit, sending a SIGTERM

    child process 25677 still did not exit, sending a SIGKILL

    I am getting loads of these errors above

    Thank you :confused:
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Sounds like you've setup an infinite loop wither in httpd.conf or in a .htaccess file. Does the error_log not give more information about the domain or file that's causing this?
     
  3. swampy

    swampy Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    0
    No that is all i have had this from only serveral hosts coming to my server it only happens at arround 22:30 pm every night but everything is ok during the day
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If you cannot find which entry in httpd.conf or the .htaccess file that is causing this, it might be better to do the opposite of the suggestion and set RewriteOptions MaxRedirects lower so that it doesn't trash apache. So before any VirtualHosts in httpd.conf, put it in:

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteOptions MaxRedirects=5
    </IfModule>


    Then reload apache:

    httpd graceful

    Might help.
     
  5. swampy

    swampy Well-Known Member

    Joined:
    Jan 30, 2004
    Messages:
    148
    Likes Received:
    0
    Trophy Points:
    0
    Thanks Chirpy i will give that a go one thing i do know this is only happening on one domain cus it is the only on with rewrite on it could it be too much traffic on the server causing this i have mambo cms installed on main domain and 5 subdomiains with the same on
     
  6. gupi

    gupi Well-Known Member

    Joined:
    Apr 27, 2004
    Messages:
    125
    Likes Received:
    0
    Trophy Points:
    16
    I also had this issue in the following situation:
    * Drupal CMS in the main domain, having short URL enabled (via mod_rewrite)
    * Coppermine gallery in a subdomain
    When accessing coppermine in [subdomain.domain.com], the .htaccess rules from [domain.com], actually needed for Drupal CMS, were acting upon folder [subdomain] (remember, a subdomain is actualy a folder in the main domain), and generating the mod_rewrite error.

    My rude solution:
    * enter into [subdomain] folder
    * touch .htaccess
    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine off
    </IfModule>
    
    Well, the ideea is that a rewrite rule in your main domain, set by mambo cms, can affect one of your subdomains.
     
Loading...

Share This Page