Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I kept some cgi,python files under /var/www/cgi-bin and trying to execute I followed all the steps in:

Still i am not able to execute. when i enter or , I am getting the file download pop-up.

Do i need to make any other changes other than that showed in link.

share|improve this question

What system are you on? I have a VM running arch linux which I am using for CGI development using python, so I simply edit the file: /etc/lighttpd/lighttpd.conf and add the following:

server.modules          =(
cgi.assign              =(
                    ".cgi" =>"/usr/bin/python",
                    ".sh" =>"/bin/sh"

A quick explaination of what is going on above: the first three lines are just telling the server to enable its cgi module. The last four lines are telling the cgi module which environment should be used to execute a given file extension. In my case, *.cgi files are assigned to python by putting the path to the proper python executable in quotes after the =>

Does this help?

share|improve this answer

Your Answer


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.