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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.