Mobile app version of vmapp.org
Login or Join
Turnbaugh106

: Fsockopen() not working I'm running an Ubuntu 12.04 server with Plesk 12, Apache 2.2.22 and PHP 5.3.10. I want to enable reCaptcha for my phpBB board, but every time I get this error: Could

@Turnbaugh106

Posted in: #Linux #Php

I'm running an Ubuntu 12.04 server with Plesk 12, Apache 2.2.22 and PHP 5.3.10.
I want to enable reCaptcha for my phpBB board, but every time I get this error: Could not open socket

I've enabled allow_url_fopen for this domain and temporarily allowed outgoing traffic on port 80 and 443 for all IPs.
According to phpinfo() allow_url_fopen is enabled.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Turnbaugh106

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

Judging from the question here, a similar problem was fixed by changing:

define("RECAPTCHA_VERIFY_SERVER", "www.google.com");


to:

define("RECAPTCHA_VERIFY_SERVER", gethostbyname("www.google.com"));

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme