Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.