I am setting up a simple web site that has a Python CGI script. Everything is working as long as I have selinux set in permissive mode. The issue is that I am using Anaconda and the SELinux context is all wrong. What is really annoying is that I dont get message in
/var/log/messages
/var/log/audit/audit.log
I have determined that I need to has SELinux contexts fixed with my Anaconda install, but I can't find any guides and the errors in my Apache log only get me so far.
How can I configure Anaconda so that Apache can use the Python binary as part of a CGI script?
Edit:
To make it clear I am thinking this is a SELinux issue because when I turn SELinux to permissive or disabled the web app works, but when it is enforcing the browser gets a 500 error. Nothing is logged in the noted locations about SELinux blocking anything so it makes troublesome. I do get a message about the cgi script not being able to execute in the apache log. When I modify the context of the python binary in my anaconda install (that is owned by apache:apache) to match the default python binary installed by yum the error changes to an unable to load a shared library.