Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

For help I checked out these links: This This and This

I have an empty httpd.conf file but apache2.conf is not and the formats and tags in apache2.conf are similar to what httpd.conf has in windows as a result of which it has become a bit confusing!

I have CGI enabled and running on windows by changing the httpd.conf (of windows) file.

I am using Ubuntu 11.10 and I want to enable python (2.7.3) CGI.

Please help me solve this problem.

share|improve this question

I'm running Ubuntu Precise & the config file is /etc/apache2/sites-available/default. This fragment:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
maps requested directory cgi-bin to /usr/lib/cgi-bin on the server (which is where the script & template files go).

I made a Web form using a Python script 'dividerWeb1.cgi'; the HTML is:

<form action="cgi-bin/dividerWeb1.cgi etc....

I found this article very useful.

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.