I've got a CGI script written in python (starts with #!/usr/bin/env python) that executes fine on the server. I type in /home/company/server/root/adam/code.cgi and it outputs the right output. I go to www.myserver.com/adam/code.cgi and all I see is the source code of my cgi script output in plain text.
There's got to be some kind of permissions problem but I'm still new to Linux. I did chmod a+rx * on /home/company/server/root and all subfolders, but I can't make /home, /home/company or /home/company/server globally readable/executable because I'm an intern and don't have high enough permissions and I'm not sure the IT guys want to make them publicly visible.
What do I do? I need the CGI script to be accessible from browsers. Other webpages in the same directory are viewable from the browser and come out in perfectly rendered HTML.