okihost Posted March 19, 2007 Share Posted March 19, 2007 I have my servers setup in WHMCS, when I attempt to create an account I get a socket error as follows: Server Command Error Socket Connection Failed A more in depth investigation reveals this error: Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://xx.xxx.xxx.xxxx:2087 (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?) in /home/site3/public_html/whmcs/modules/servers/cpanel/cpanel.php on line 326 What I have done so far is ensured port 2087 incoming and outgoing is opened, I have even tried dropping the firewall totally. I have checked that SSL and Sockets support is compiled with PHP. I have tried every PHP version available through easyapache and forced a cpanel file refresh. I have tested using non-secure port 2086 and it works without any issues. Matt told me to verify this I should be able to connect to ssl://123.123.123.123 the problem is I am unable to do that in FF or IE and cannot find any other servers that allow this type of browser loading. I am hoping maybe someone else out there would is using SSL connections to servers when creating accounts could test your server using the type of URL above and maybe they can tell me setup they have so I can give it a shot. I am open to any suggestions anyone may have, I am really getting frustrated and assumed this would not be such a big project. I have also tested this across six different servers all with the same error. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 20, 2007 Share Posted March 20, 2007 Hey, Whats wrong with using https? From, Adam 0 Quote Link to comment Share on other sites More sharing options...
okihost Posted March 20, 2007 Author Share Posted March 20, 2007 That was kind of my point when I connect using h-t-t-p-s://ipaddress:2087 it works fine, I verified open ssl, mod_ssl were enabled so I am kind of totally lost as to how to figure out what is going wrong. No types of errors are getting logged by the system so I am totally lost. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 20, 2007 Share Posted March 20, 2007 Hey, So then why do you need to use SSL://? HTTPS is SSL - hence the S after the P (s standing for secure). From, Adam 0 Quote Link to comment Share on other sites More sharing options...
okihost Posted March 20, 2007 Author Share Posted March 20, 2007 Hey, So then why do you need to use SSL://? HTTPS is SSL - hence the S after the P (s standing for secure). From, Adam This is how whmcs connects to WHM, the issue is I can run the following script locally from the server with no issues, but if I run it from a remote server such as the one whmcs is running on I get the error. <? $ipaddress = "ssl://xx.xx.xx.xx.xx"; $port = 2087; $test = fsockopen($ipaddress,$port,&$errno,&$errstr); if (!$test) { echo "DOWN\n"; } else { echo "UP\n"; } ?> So I guess I am trying to figure out why I am unable to connect remotely, I have dropped apf/iptables with the same results. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 20, 2007 Share Posted March 20, 2007 Hey, The same script works fine for me on my servers, I have test it both locally and tried to connect on a different server running cPanel and shows UP. However if you have PHP short tag turned off (IE php start should be <?php short tag is <?) turned off this may be the problem. Try <?php $ipaddress = "ssl://xx.xx.xx.xx.xx"; $port = 2087; $test = fsockopen($ipaddress,$port,&$errno,&$errstr); if (!$test) { echo "DOWN\n"; } else { echo "UP\n"; } ?> Other then that, you may just want to recompile PHP. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
okihost Posted March 20, 2007 Author Share Posted March 20, 2007 Hey, The same script works fine for me on my servers, I have test it both locally and tried to connect on a different server running cPanel and shows UP. However if you have PHP short tag turned off (IE php start should be <?php short tag is <?) turned off this may be the problem. Try <?php $ipaddress = "ssl://xx.xx.xx.xx.xx"; $port = 2087; $test = fsockopen($ipaddress,$port,&$errno,&$errstr); if (!$test) { echo "DOWN\n"; } else { echo "UP\n"; } ?> Other then that, you may just want to recompile PHP. From, Adam Thank you for your help. A little different results now, I can load it locally fine still but if I try to connect to the server via whmcs I still get the error. If I load the script on the server I am trying to get whmcs to connect to and have it connect to the whmcs server instead it gives an up. So it seems to be an issue with this server, I am just not sure what is blocking it. I had a bunch of functions disabled so I remove those, checked the ports in the firewall, dropped the firewall to test, and checked that SSL is being compiled with php. I even tried every version of PHP from 4.3.11 > 5.2.1 with no luck. Guess I will sleep on it and look into it more tomorrow. Thanks again for your suggestions, at least now I know it is an issue with the cpanel box and now with the server whmcs is on. 0 Quote Link to comment Share on other sites More sharing options...
hoosierweb Posted July 2, 2007 Share Posted July 2, 2007 any results? 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted July 2, 2007 Share Posted July 2, 2007 any results? Hey, This post is around 3 months old. Also, the problem he was facing was a firewall issue. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.