Networking

Fix php not able to connect to remote servers

0

This is an annoying one. In this case running Centos 6.3 Generally you will find that php will run fix but any time a call is made to an external sites  the connection cannot be made. Interestingly this seems to affect php running as fastgci but not mod_php.

Symptoms include:

WordPress plugin page

 ”An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.”

Magento Cant connect to external Payment Gateways

 

In this case the culprit was SELinix

The answer is to run:

setsebool -P httpd_can_network_connect=1

This allows Apache to open ports to remote servers.

 

 

View a non-resolving domain name using HOSTS files

0

Under normal circumstances the DNS system will inform your browser at what IP address a site should be accessed. However, if you are transferring a site or working on a new site on a new server while your existing site continues to operate then it is useful to be able to override the normal DNS process. This is where the HOSTS file comes in.
(more…)

Go to Top