Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

fread error

Discussion in 'General Discussion' started by allwebnow, Apr 27, 2007.

  1. allwebnow

    allwebnow Well-Known Member

    Joined:
    Jan 8, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    156
    I'm running a php script that communicates using Enom API php code. When I run the script I get this error:

    Warning: fread() [function.fread]: SSL: fatal protocol error in /home/user/public_html/go/modules/custom/enom/include/EnomInterface_inc.php on line 116

    Line 116 is this:
    while ( $out=fread ($socket,2048) ) {

    Does anybody know what this means? The developer of the software said it is an issue with my server configuration. I have my server setup based on Chirpy's settings using CSF, LFD. I'm pretty sure it's a firewall/php/ssl issue of some kind. Any insight on this would be very greatful!

    Thanks in advance.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. allwebnow

    allwebnow Well-Known Member

    Joined:
    Jan 8, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    156
    Ok, I contacted enom and they said it was an ssl port issue the script was having. So, i went into csf and added 2048 to all "allow" port fields and restarted csf/lfd. I'm Still getting the error. Any help would be greatly appreciated.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Did you add that port to TCP_OUT which is what I would assume that you need (and then restart the firewall)?

    You could also tail /var/log/messages and then visit the script and watch for any kernel Firewall messages that might appear which would show which ports and their direction are at issue if it is a firewall problem.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. allwebnow

    allwebnow Well-Known Member

    Joined:
    Jan 8, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    156
    Yeah, i've already added the port 2048 to csf and restarted the firewall. That didn't work. Then I ran the script and did a tail /var/log/messages and nothing posted in the log that appeared to be related at all to this issue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. allwebnow

    allwebnow Well-Known Member

    Joined:
    Jan 8, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    156
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. allwebnow

    allwebnow Well-Known Member

    Joined:
    Jan 8, 2007
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    156
    I still haven't gotten this fixed so if anyone can help that would be great.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice