I am trying to get PHP to execute a curl connection to another server. To connect to the server, we need to go via a proxy. Within bash, we have set the env-variable http_proxy and this works correctly while using the php script from the command-line. However, when attempting to execute curl, or wget from apache, it fails with no errors. The server is configured with SELinux based on Centos defaults. This has been unchanged as I am unsure about SELinux configuration. Has anyone else had a similar issue?
feedback
|
|
Under SELinux httpd (and therefore its children) isn't allowed to make outgoing connections. Try
You should see messages in If you are new to running apache under selinux have a look at Edited to add: P.S. If you're not an selinux guru plan to spend a lot of time trying to get even mildly unusual apache configs working under selinux. | |||
feedback
|
|
Have you told curl it needs to connect via a proxy?
| |||
|
feedback
|