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.

Deleting account crashes Apache

Discussion in 'EasyApache' started by techark, Aug 24, 2002.

  1. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    Twice in the last 2 weeks on different servers this has happened when one of my resellers deleted an account and then recreated and deleted it again. Apache crashes, the the entire Vitrual host is left in httpd.conf but the home/username/public-html gets deleted so Apache bites the dust.

    Anyone else seen this problem or has a sure fire cure?
     
  2. idn

    idn Well-Known Member

    Joined:
    Aug 18, 2001
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    I have this problem too on a clients Server. Id love to find a resolution
     
  3. Jodi

    Jodi Registered

    Joined:
    Jul 1, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Exact same problem here. In fact, I was just coming to post about it when I saw your thread...
     
  4. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
    [quote:c6dd7cf80b][i:c6dd7cf80b]Originally posted by techark[/i:c6dd7cf80b]

    Twice in the last 2 weeks on different servers this has happened when one of my resellers deleted an account and then recreated and deleted it again. Apache crashes, the the entire Vitrual host is left in httpd.conf but the home/username/public-html gets deleted so Apache bites the dust.

    Anyone else seen this problem or has a sure fire cure?

    [/quote:c6dd7cf80b]

    Is this a RedHat server? Run: tail -f /usr/local/apache/logs/error_log to see if you are getting a user does not exist error. If so, use userdel to remove the user from your system.
     
  5. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    Yes I know what is happening

    But why is WHM not removing the user from Apache? That is what I am trying to get at, I can fix the problem in about 2 minutes and get Apache rebooted but I am looking for someway to stop Apache from crashing by getting Cpanel to remove it properly so it does not happen again.
     
  6. rastoma

    rastoma Well-Known Member

    Joined:
    Aug 27, 2001
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    16
    this is also happenging to a lot of my customers.

    also we'll see an account that got deleted like 2 weeks prior just now causing a problem in that the virtual entry was still in or got readded to httpd.conf
     
  7. steven

    steven Active Member

    Joined:
    Sep 9, 2001
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    We had this problem as well, luckily by the second time it happened we caught it. We had the user does not exist error so we simply decided to not give resellers the ability to terminate accounts, and if they wanted to term an account they need to contact us. Then a couple updates later it appears the problem is resolved. **keeping fingers crossed**

    I also would like to know when the terminate account feature isn't properly terminating accounts. This was on a RH 7.2 server and it happened a while back for us at least.

    -Steven
     
  8. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    16
    I would

    have to hire a full time tech to do nothing but delete accounts for resellers if I took that ability away from them. :p

    Gotta be a better answer than that.
     
  9. steven

    steven Active Member

    Joined:
    Sep 9, 2001
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    the answer is that upgraded to the latest build at the time, and that seemed to cure it.

    -Steven
     
  10. jsnape

    jsnape Well-Known Member

    Joined:
    Mar 11, 2002
    Messages:
    174
    Likes Received:
    0
    Trophy Points:
    16
    I had it happen last night on WHM 5.0.0
    Cpanel 5.0.0-50
    RedHat 7.2

    The customer said she tried changing the username, saw that it wouldn't work so deleted the account. Here is the exact account:

    &quote&
    Yes, I tried to change the username. I realized that when I created the ******.com domain, I had put admin as the username, and that got translated into domain directory. There was an option in WHM that allows one to change usernames. When I tried it, it said that the feature was not available at this time. I then deleted the domain, and parked it at *****.com domain.
    &/quote&

    Well while she was parking the domain, I was removing the account from httpd.conf manually and trying to get apache restarted. Luckily I was sitting right at a terminal window when it happened.

    For rthe posts above, I don't think it has been cured, I think it just hasn't happened again (yet).
     
  11. bdraco

    bdraco Guest

    Is this a predictable behavior ?

    Does anybody have a list of steps to reproduce it ?
     
  12. jsnape

    jsnape Well-Known Member

    Joined:
    Mar 11, 2002
    Messages:
    174
    Likes Received:
    0
    Trophy Points:
    16
    I think I do but don't want to try it on my live servers. This happened again to me yesterday. I have a theory that it only happens if it is the last account in httpd.conf being deleted. So if a client creates an account and immediately deletes it or no other accounts get created before it is deleted Apache crashes.
     
  13. portman

    portman Well-Known Member

    Joined:
    May 23, 2002
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    We are assuming since this happens to us on one of our servers with only one of our resellers. We are predicting that the reseller is not waiting for the script to complete before moving to another page.

    It is only a theory at this point. But we find that if we delete teh accounts and wait for the completion we have no issues.
     
  14. MrHits

    MrHits Well-Known Member

    Joined:
    Oct 31, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Not sure if this is it..but, It happened to me when I double clicked the terminate button.

    It ended up deleted the accoutn from teh system, but it left the apache config.

    And, since suexec is enabled apache won't start because the username is bad.

    Thanks
     
  15. bdraco

    bdraco Guest

    [quote:21a07a75b4][i:21a07a75b4]Originally posted by MrHits[/i:21a07a75b4]

    Not sure if this is it..but, It happened to me when I double clicked the terminate button.

    It ended up deleted the accoutn from teh system, but it left the apache config.

    And, since suexec is enabled apache won't start because the username is bad.

    Thanks

    [/quote:21a07a75b4]

    Changed the order of deleting.. if this happens again apache should still start, but the user will still be there
     
Loading...

Share This Page