Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
</Directory>
...
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
add comment

Your Answer

 
discard

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.