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.

WHM's httpd.conf actions

Discussion in 'General Discussion' started by mikerobinson, Jun 19, 2004.

  1. mikerobinson

    mikerobinson Member

    Joined:
    Apr 12, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I have a host who was trying to tell me that there weren't very many people on that server and that if it got around 100 the newer people would be put on a different server, but the thing is, I opened up their httpd.conf file (/etc/httpd/conf/httpd.conf) and it looks to me like every time a site is added, a new entry is created like in there like the following:

    And I was a little bit suspicious because there were 680 occurrences similar to this. So I confronted my host about it and he told me that the reason that there are so many entries is because when people delete their accounts it doesn't delete it from that file, so it gets progressively larger.

    So my question is, is this true? Does WHM not delete the entries from the httpd.conf file after the domain has been deleted? Can anyone verify this for me because I really do feel that my host is lying to me, as they have about many other things.

    Thanks,

    Mike Robinson
     
  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
    So long as they are removing the account with WHM > Terminate account (which is the normal way to delete an old account) then it does delete everything from httpd.conf.

    If you have access to that file, you probably also have access to /etc/passwd, if you list that, then apart from the first ~30 accounts, the rest are user accounts (minimum one domain per user).

    Another way, if you have access, is to list the directories in /home/ - most of those are, again, the user accounts (as above).

    That should give you enough information on the rough number of accounts on the server.
     
  3. mikerobinson

    mikerobinson Member

    Joined:
    Apr 12, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your help chirpy. I will definitely use this against them if I have to. Although the reason that I am posting in here is because less than 5 min after I told their support tech how I calculated the number of sites hosted with them so that he didn't think I was just making that number up, I was unable to access the site via telnet or SSH. He told me that he didn't disable my access, but it's kind of strange that it happened to be 5 min after I told him I was snooping around in the system, dont you think? I guess he doesn't want me having any more evidence against them.

    Mike
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Interesting. As chirpy said, normally the entries do get removed when an account is deleted, so they probably do have that many accounts. With shell access, it is possible to browse outside of your own directory, but generally not allowed, so they likely did turn off your shell access.

    Go to http://www.webhosting.info/domains/ and do the advanced whois lookup on your domain and it will show how many other sites are on your IP.

    How many sites are on the server isn't always a big deal if a lot of them are small. That advanced lookup also lets you get the list of sites on your IP so you can check them out if you want to get an idea of what kind of load they are putting on the server.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Interestingly, while investigating ways to obtain this information, I discovered that it is quite trivial using a user perl CGI script to get detailed information about all accounts on the server, including enabled features, IP address, domain names, etc. No shell access required :eek:
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You are right. It isn't that hard to do. That's why like some people say: "Why make such a big deal over shell access. If they have an account, they can do pretty much anything somehow."
     
Loading...

Share This Page