Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51430
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-07-29 03:44 -0700 |
| References | <2ebe3375-6aa6-45cd-b534-0241bd025eb3@googlegroups.com> |
| Message-ID | <681351a1-5918-401e-96d0-b6a17c2dfcd9@googlegroups.com> (permalink) |
| Subject | Re: Configuraion to run pyhton script on ubuntu 12.04 |
| From | Jaiky <jaiprakashsingh213@gmail.com> |
Problem solved regarding cgi configuration on ubuntu 12.04 lts
Concept:-)
file used:-)
/etc/apache2/httpd.conf
/etc/apache2/sites-available/default
############################################################################
steps done 1:-)
in /etc/apache2/httpd.conf
added line
#########for link localhost/python2/hello.py
ScriptAlias /python2/ /var/www/python2/
<Directory "/var/www/python2/">
AllowOverride None
Options +Indexes FollowSymLinks +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
#######fro runing of python script
AddHandler cgi-script cgi pl mod_python .py
PythonHandler mod_python.publisher | .py
AddHandler mod_python .psp .psp_
PythonHandler mod_python.psp | .psp .psp
PythonDebug On
</Directory>
#########################################################################
step done 2:-)
added line
#######fro runing of python script
AddHandler cgi-script cgi pl mod_python .py
PythonHandler mod_python.publisher | .py
AddHandler mod_python .psp .psp_
PythonHandler mod_python.psp | .psp .psp
PythonDebug On
between
<Directory "/var/www/">
-----------------
---------------
HERE I ADDED Line
-------------
-----------------
</Directory>
<Directory "/usr/lib/cgi-bin">
-----------------
---------------
HERE I ADDED Line
-------------
-----------------
</Directory>
############################################################################
Step Done 3:-)
added line
in /etc/apache2/mods-available/mod_python.conf
######mod_python.conf i created
<IfModule mod_python.c>
AddHandler mod_python .py .psp
PythonHandler mod_python.publisher | .py
PythonHandler mod_python.psp | .psp
</IfModule>
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Configuraion to run pyhton script on ubuntu 12.04 Jaiky <jaiprakashsingh213@gmail.com> - 2013-07-28 03:32 -0700
Re: Configuraion to run pyhton script on ubuntu 12.04 Pierre Jaury <pierre@jaury.eu> - 2013-07-28 13:34 +0200
Re: Configuraion to run pyhton script on ubuntu 12.04 Jaiky <jaiprakashsingh213@gmail.com> - 2013-07-28 09:19 -0700
Re: Configuraion to run pyhton script on ubuntu 12.04 Jaiky <jaiprakashsingh213@gmail.com> - 2013-07-29 03:44 -0700
csiph-web