Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Feb 2011
    Posts
    61

    Default Connection timed out

    I have the full backup script that I set to run with cron. This morning I saw a message in the error log that said:

    PHP Warning: fsockopen(): unable to connect to mydomain.com:2082 (Connection timed out) in /home/user/cpanel_backup.php on line 36

    Line 36 is: $socket = fsockopen($url,$port); $url is my domain, $port is 2082. I've used it before on another server and it worked fine, so I'm just wondering if this is a temporary issue? Or if it could be something else on the hosts end that prevents a script like this from working?
    Last edited by czerdrill; 03-02-2011 at 08:24 AM.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Connection timed out

    Can you try running the script again to see if it is a temporary issue or not that way? If it normally runs by cron, simply have the cron run in the next 10-15 minutes again to see the results. If it fails again, then you would likely need to contact the host of the machine to inquire any changes they might have recently made to prevent the script from connecting to run the backup.

    You might also consider changing to the secure cPanel port of 2083 rather than 2082, since they might be preventing non-secure connections on the machine now?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Feb 2011
    Posts
    61

    Default Re: Connection timed out

    When I try 2083, I get a server not found error. I will try re running the cron again later tonight to see if it was just a temporary issue...

Similar Threads & Tags
Similar threads

  1. The Connection has timed out
    By getnetphnx in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 02-25-2010, 03:10 PM
  2. Connection timed out when using xml-api
    By dom974 in forum cPanel Developers
    Replies: 8
    Last Post: 08-23-2007, 10:40 AM
  3. FTP Connection Timed Out?
    By pagedeveloping in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-18-2007, 08:59 AM
  4. The connection has timed out
    By Celep in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-22-2006, 07:58 AM
  5. Connection timed out when starting installation
    By krisdv in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-03-2003, 06:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube