If you met the following error from the browser, it could be a reCaptcha problem.
Could not open socket
It seems a DNS problem, you can take the following steps to resolve:
- Make sure the value of RECAPTCHA_VERIFY_SERVER in recaptchalib.php.
- Get A records of the verify server.
- Add the A records to you local host file.
[root@localhost ~]# host www.google.com
www.google.com has address 220.127.116.11
www.google.com has address 18.104.22.168
www.google.com has address 22.214.171.124
www.google.com has address 126.96.36.199
www.google.com has address 188.8.131.52
www.google.com has IPv6 address 2404:6800:4005:c00::68
[root@localhost ~]# vi /etc/hosts
It should work fine now.
Another way to resolve this is to add reliable name servers like Google public DNS to your network configuration:
[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Don't forget to restart the primary NIC or network service to take effect.