curl (7) permission denied on cgi script
Solution 1:
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.