Results 1 to 2 of 2
Hi all, I'm unable to configure the apache2 with python support. I have done the configuration in the following method, but unable to start the python cgi support:
I have ...
- 05-31-2011 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 85
Embedding Python in Apache2
Hi all, I'm unable to configure the apache2 with python support. I have done the configuration in the following method, but unable to start the python cgi support:
I have installed the libapache2-mod-python it has installed python.load in the mods-available directory.
In the apache2/sites-available/default file, I have added the following lines.
<Directory /var/www/py>
AddHandler mod_python .py
PythonHandler mod_python.publisher
PythonDebug On
</Directory>
And when I request for a python script in the py folder. I get a 404 Not found error. Am I doing any mistake, any help please
Thanks in advance
- 06-03-2011 #2Just Joined!
- Join Date
- May 2011
- Posts
- 44
first:
What OS?
What versions of Python and Apache2?
how are you trying to access your python script?
(i.e.: what URL are you putting in your browser?)
have you checked the permissions? Waht are the permissions.
can you post the full /etc/*/apache2.conf || httpd.confCode:ls -la /var/www/py


Reply With Quote