php issue (Network TCP Error).

Discussion in 'PHP' started by 0x3, Oct 16, 2011.

  1. #1
    Hello,

    Visit Website.

    username for .htaccess

    alraya

    password

    alraya_pWd

    When i open the website it's loading fine without any issue, but after reviewing any section more than 3-4-5 times i receive error

    Network Error (tcp_error)

    A communication error occurred: ""
    The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.

    For assistance, contact your network support team.

    i contact the ISP, the website loading fine, and there is no issue, but with me the error doesn't resolve yet, does anyone can assist me in this, i can pay for this issue.

    please pm me if you able to fix this issue.

    Regards.
     
    0x3, Oct 16, 2011 IP
  2. thedanielsolution

    thedanielsolution Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Would need to look at the code to determine the problem... Have you considered that it could simply be a problem from your local system to the host and not a problem on the host itself?
     
    thedanielsolution, Oct 16, 2011 IP
  3. 0x3

    0x3 Active Member

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #3
    Actually i don't know, did you browse the web without any issue, please spend 1-2 minutes browsing section of menu and see if you face any issue.
     
    0x3, Oct 16, 2011 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    I can't read what I assume is Arabic, so I pulled the first item on the first menu on the right 6 times. Then I pulled the first, second, first, second, etc., 6 times each.

    No problem.

    I can only assume that it's (less likely) your computer or (more likely) your internet provider.
     
    Rukbat, Oct 16, 2011 IP
  5. 0x3

    0x3 Active Member

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #5
    0x3, Oct 16, 2011 IP
  6. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #6
    Something on the site, then. If they can't spend 15 minutes trying to solve it, it may be time for you to move your site to a better host.
     
    Rukbat, Oct 16, 2011 IP
  7. dmvictoria

    dmvictoria Well-Known Member

    Messages:
    400
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #7
    This may be an odd observation. But is all your php includes local ie:

    <?php include('home/publichtml/file.php'); ?>
    PHP:
    as opposed to:

    <?php include('http://www.yourdomain.com/file.php'); ?>
    PHP:
    If you used the last one there is a known php bug that results in error messages after multiple requests or reloads. Its kind of tricky because it clears out after a while giving the impression everything is back to normal.
     
    dmvictoria, Oct 16, 2011 IP
  8. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #8
    Would you have a link to that? I can't find a reference, but if it's documented I may be spending a week or so doing nothing but cleaning up a few dozen sites. Intermittent bugs are a no-no.
     
    Rukbat, Oct 16, 2011 IP
  9. dmvictoria

    dmvictoria Well-Known Member

    Messages:
    400
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #9
    Well, I tried to look for a reference, but couldn't find one directly pertaining to this situation. However the PHP Manual advises against remote includes here.

    I only know this from my own websites grinding to a halt and then erroring out. When I had my host support look into it, they told me there was a known issue with remote includes. So, I went ahead and changed them all to local and haven't had a problem since. And its not too bad to change them, just set up your find and replace and it goes pretty quick. But, if you are not having a problem, then there is no need to fix it. Right?
     
    dmvictoria, Oct 16, 2011 IP
  10. 0x3

    0x3 Active Member

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #10
    So how could i resolve this issue, the server is mine, and it's not hosted on hosting server, it's a vps server.
     
    0x3, Oct 16, 2011 IP
  11. jcwebhole

    jcwebhole Active Member

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #11
    I think its a memory problem... since you are on a VPS and you might be overloading your system...
    try to flush whatever to save up memory or some optimization techniques to make your site faster and more efficient..
    otherwise start getting more ram...

    or it might be your php.ini
     
    jcwebhole, Oct 16, 2011 IP
  12. jcwebhole

    jcwebhole Active Member

    Messages:
    93
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #12
    i checked your site and i got into some section that asked me again for the .htaccess password... is that an iframe or an ajax call? or your httpwd has irregularities on it?
     
    jcwebhole, Oct 16, 2011 IP
  13. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #13
    If you're talking about the warnings, that's not an issue if you're including scripts from your own sites. (If you're not, you are probably violating a few laws and violating copyright.)

    On a few dozen (at least) sites? (I'd have to look at all code to be sure where remote includes are used. I no longer keep all the code I write in my head, the way we did back in the stone age of programming.)

    That's the bottom line. I have sites that are hit often enough that I worry about the drives seizing bearings, and I have no remote script problems on them, so I'm going to forget about it unless I see the symptoms. But thanks for the heads-up - I'll keep it in the back of my mind, just in case.
     
    Rukbat, Oct 16, 2011 IP
  14. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #14
    VPS is still hosted, unless you have it installed in your house or office. Or did you buy a bargain VPS? (You pay, they provide power and an internet connection but no tech support?) I don't pay for servers - buying and setting one up is trivial. I pay for support, either by hiring people to work at the site or by buying hosting. (I also overpay for my ISP, because their tech people are actually tech people, not clerks reading scripts.) I'd think twice about a company that couldn't even tell me where to look to solve the problem.
     
    Rukbat, Oct 16, 2011 IP
  15. 0x3

    0x3 Active Member

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #15
    Yes, am receiving an errors from DirectAdmin that my RAM is running low 78%..
     
    0x3, Oct 16, 2011 IP
  16. 0x3

    0x3 Active Member

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #16
    It's look like the error (Network TCP_Error) comes when i enable .htaccess password for the directory!? somehow i can be sure that is the problem.

    When i remove the htaccess everything seems okay.... otherwise the tcp_error comes back.... any suggestion regard htaccess here?
     
    0x3, Dec 8, 2011 IP
  17. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #17
    What version of what http server software is the site running?
     
    Rukbat, Dec 10, 2011 IP
  18. 0x3

    0x3 Active Member

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    61
    #18
    [root@www /]# php -v
    PHP 5.2.17 (cli) (built: Nov 2 2011 18:23:17)
    Copyright (c) 1997-2010 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.0.10, Copyright (c) 2002-2011, by ionCube Ltd.
    [root@www /]#
     
    0x3, Dec 10, 2011 IP