Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can't understand which permissions could be denied. Running cgi script from command line works fine.

http_proxy="" curl http://url/ -o file

Produces curl(7): permission denied

(same issues with wget)

EDIT (Workaround) Right now I have to partially disable SELinux to get this to work (tried twiddling all the permissions to no avail).

share|improve this question

Figured it out. Even though running script as apache from the command-line works, SELinux seems to be stopping curl and wget when cgi script is invoked through the web.

Edit /etc/selinux/config, change SELINUX=permissive (FYI: this has consequences)

Looking for a better way of handling this.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.