question on new VPS and proxy

Discussion in 'Site & Server Administration' started by TonyW, Apr 2, 2007.

  1. #1
    I recently got a VPS from hostaga. The support is good but I have one problem. I got everything up and running today but when i installed my phpproxy scripts I am getting an error.

    "URL Error (0): An error has occured while trying to browse through the proxy.
    Failed to connect to the specified host. Possible problems are that the server was not found, the connection timed out, or the connection refused by the host. Try connecting again and check if the address is correct."

    The site is located at http://www.imnotbored.info and the phpinfo is located at http://www.imnotbored.info/test.php

    Can anyone help me fix this problem?

    Thanks,
    -Tony
     
    TonyW, Apr 2, 2007 IP
  2. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
  3. TonyW

    TonyW Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I've tried a default installation and nothing changed. Thanks tho.
     
    TonyW, Apr 4, 2007 IP
  4. delusion

    delusion Guest

    Messages:
    1,195
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Have you asked live support about this? I had the exact same problem with my host, but I ticketed support and they fixed it up in 10 minutes :eek:
     
    delusion, Apr 4, 2007 IP
  5. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, if you are using a firewall, turn that off. If you have mod_security, disable that too. Try a few times with completely open ports and see if that works.

    If you disabled those dangerous PHP Functions, try enabling them again. I am not sure if the PHPProxy script works but you might need to enable CURL.
     
    eddy2099, Apr 4, 2007 IP
  6. Artisan

    Artisan Well-Known Member

    Messages:
    634
    Likes Received:
    35
    Best Answers:
    1
    Trophy Points:
    128
    #6
    Your hosting provider may prevent outgoing connections. You should try to log in using ssh and try to connect to something outside, may be using lynx web browser software like this.

    $ lynx http://www.google.com/

    There are many utilities which may be used for the test, wget, fetch, even telnet to the 80 port on the site outside of your machine would be enough.

    $ telnet www.google.com 80
    GET / HTTP/1.1
     
    Artisan, Apr 4, 2007 IP
  7. TonyW

    TonyW Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Im awaiting a reply from support on the subject but I think I've narrowed down my problem. However I don't know a whole lot about php so maybe Im still way off. However phproxy uses port 443 and if that port isn't enabled or cannot be used then it would cause a timeout correct? I tried editing the script to get it to use port 80 but that didn't work out so well... I've sent a new support ticket to see if my host will look into the port thing because I couldn't open the port using the "iptables" commands.

    Im learning, slowly but surely Im learning.
     
    TonyW, Apr 8, 2007 IP
  8. eddy2099

    eddy2099 Peon

    Messages:
    8,028
    Likes Received:
    568
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Port 443 if I am not wrong is the SSL port. I have not tried running a Proxy script before as my web host prohibits me to do so so I have not seen the codes.

    Yes, if the port is blocked, it could cause you some issues.
     
    eddy2099, Apr 8, 2007 IP
  9. TonyW

    TonyW Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Sorry its port 440. Im shooting in the dark here. Im trying to catch my hosts live support online. But I don't usually get home in time. I've submitted 2 tickets and haven't heard anything.

    The code is:
    $_script_url        = 'http' . ((isset($_ENV['HTTPS']) && $_ENV['HTTPS'] == 'on') || $_SERVER['SERVER_PORT'] == 440 ? 's' : '') . '://' . $_http_host . ($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 440 ? ':' . $_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF'];
    
    PHP:
    The weird thing is this ran perfect on a shared host.
     
    TonyW, Apr 9, 2007 IP
  10. invisible

    invisible Banned

    Messages:
    2,031
    Likes Received:
    95
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You know something? I could have gone the rest of my life without knowing that.
     
    invisible, Apr 9, 2007 IP