The strangest problem..

Discussion in 'Site & Server Administration' started by hasen, Jul 28, 2008.

  1. #1
    Two of my sites on my dedicated server are down but I've no idea why. I can ftp into these sites and access the cpanel but the main homepage does not load. I've never had this problem before. All the other sites on my server are running fine. I've tried restarting apache but that didn't work and didn't seem necessary anyway since all the other sites on the server are running fine.

    My traffic logs show that others are having trouble accessing the sites too so its not just my problem. Please help!
     
    hasen, Jul 28, 2008 IP
  2. Lever

    Lever Deep Thought

    Messages:
    1,823
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    145
    #2
    Do you know when the last time was when your homepage was being served correctly?
     
    Lever, Jul 28, 2008 IP
  3. Yousif

    Yousif Banned

    Messages:
    233
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you provide more insight on what you are facing. Give us more to work with and you'll receive better assistance. I suggest you PM me your all of your domains, and then we can work on resolving this minor issue.
     
    Yousif, Jul 28, 2008 IP
  4. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    They were working fine up to last night but when I checked this morning they're both innaccessible. Thanks for the quick response. Awstats shows many visitors for yesterday but exactly 0 for 28th July! Its funny it would go like this at such an exact time. There's literally nothing I've done apart from go to sleep...
     
    hasen, Jul 28, 2008 IP
  5. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #5
    Can you please PM or Post the domain names so we can take a look. The A record may have gone missing or something.

    Jay
     
    jayshah, Jul 28, 2008 IP
  6. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #6
    From what I can tell this end, your Apache is playing up. Your WWW has a CName record pointing to the non-www record for your domain, but that domain clearly has a A record (74.xx.xx.xx).

    Poke around in your error_logs. Also, I tried a direct telnet, these are my results:

    Telnet'ing to the non-www version of your domain:
    [root@node ~]# telnet DOMAIN.com 80
    Trying 74.xx.xx.xx ...
    Connected to DOMAIN.com.
    Escape character is '^]'.
    GET / HTTP/1.1
    Host: DOMAIN.com
    
    HTTP/1.1 301 Moved Permanently
    Normal response, go to my www
    Code (markup):
    Now, the www response (or lack of):

    
    [root@node ~]# telnet www.DOMAIN.com 80
    Trying 74.xx.xx.xx ...
    Connected to www.DOMAIN.com.
    Escape character is '^]'.
    GET / HTTP/1.1
    Host: www.DOMAIN.com
    
    That's it, I waited but it hung. I had to terminate it.
    Code (markup):
    Just noticed, I clicked your link into a new tab when the PM arrived. It *just* loaded. Definitely your Apache or script.

    I hope that helps,

    Jay
     
    jayshah, Jul 28, 2008 IP
  7. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have a 301 redirect for non www to www.domain.com but removing that didn't make any difference. In fact its removed now so you can try it again. In any case, why would the cname cause a problem today that was no problem yesterday or any other time before that? Nothing's changed..
     
    hasen, Jul 28, 2008 IP
  8. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #8
    GET / HTTP/1.1
    Host: DOMAIN.com
    
    Connection closed by foreign host.
    
    Code (markup):
    Check your uptime, server load, and apache error_logs.

    Jay
     
    jayshah, Jul 28, 2008 IP
  9. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Server load is 0.36. There don't seem to be any errors logged.
     
    hasen, Jul 28, 2008 IP
  10. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #10
    Can you run the script command line?

    cd /the/script/location
    time php index.php
    Code (markup):
    For example. `time' will output 3 values (system, real and user) for the time taken by the process.

    Jay
     
    jayshah, Jul 28, 2008 IP
  11. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #11
    What do you mean exactly? I just ssh in and then type that? Script location being the location of the files for this site that contain the index.php file, right?

    I tried that and it didn't work. I tried running without changing any directory and it displayed this:

    real 0m0.439s
    user 0m0.026s
    sys 0m0.006s
     
    hasen, Jul 28, 2008 IP
  12. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #12
    Yes, exactky.

    The directly will probably be something like /home/USER/public_html

    Jay
     
    jayshah, Jul 28, 2008 IP
  13. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Ok I tried that and I had to break into it to stop it to get the results. The results were:

    real 2m1.929s
    user 0m0.000s
    sys 0m0.000s
     
    hasen, Jul 28, 2008 IP
  14. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #14
    If it does that instantly, there's a problem between Apache & PHP. You'll need to take it from here.

    I hope what I've said has been of some help,

    Jay
     
    jayshah, Jul 28, 2008 IP
  15. hasen

    hasen Peon

    Messages:
    994
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #15
    But all the sites on my server are php and they all are running absolutely perfectly..

    Yes you've certainly been a lot of help but its still confusing as to why this would suddenly happen.
     
    hasen, Jul 28, 2008 IP
  16. xous

    xous Active Member

    Messages:
    173
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #16
    PM me the two domains that aren't working and one domain that is working and I'll see what I can find.
     
    xous, Jul 30, 2008 IP