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
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
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.
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
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.
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.
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.