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.

Segmentation fault (core dumped) question

Discussion in 'General Discussion' started by Jeff75, Nov 3, 2004.

  1. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Whenever I run the apache configtest I get about 300 has no VirtualHost errors then it does a "Segementation fault (core dumped)". Can somebody tell me what this is and how to fix it? There are no other errors that come up besides the VirtualHost ones.
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Assume you have checked the httpd.conf for a NameVirtualHost statement?
     
  3. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    Each account on the server has it's own IP address so there's a couple hundred NameVirtualHosts.
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    AFAIK accounts with static/dynamic IPs should have VirtualHost statements.
    The NameVirtualHost statement would describe the primary shared/virtual IP.
     
  5. Jeff75

    Jeff75 Well-Known Member

    Joined:
    Apr 11, 2003
    Messages:
    555
    Likes Received:
    0
    Trophy Points:
    16
    I'm pretty sure the NameVirtualHost is required for each site that uses a different IP address. I was trying to clean it up to get rid of those warnings but I accidentally deleted a few and accounts that didn't have one for it's IP address came up with errors in the configtest.
     
  6. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    VirtualHost statement for each account but not NameVirtualHost, at least on our system.
     
  7. mr.wonderful

    mr.wonderful BANNED

    Joined:
    Feb 1, 2004
    Messages:
    345
    Likes Received:
    0
    Trophy Points:
    0
    We get hundreds and hundres of core dumps in /usr/local/apache/core.????? immediately after an /scripts/easyapache update. Thats before we have to restart Apache after a full system recompile. Then we have to visit the apache directory to remove about 300 core dump files. :confused:
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Well, you only need a NameVirtualHost directive if you have more than one VirtualHost using the same IP address. If an IP address is being used by only one site, there's no need for a NameVirtualHost directive for that IP address (bascially the directive is telling apache to use name-based HTTP v1.1 for the domain of the VirtualHosts for that IP address, whereas without that directive you're using IP based HTTP v1.0). I'm surprised that having them would cause a core dump though. Have you tried clearing out all of the unnecessary NameVirtualHost directives?

    If you do need a NameVirtualHost directive for an IP address, it should appear before the IP address is used in a VirtualHost directive.
     
    #8 chirpy, Nov 4, 2004
    Last edited: Nov 4, 2004
Loading...

Share This Page