Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Just 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.

    Code:
    ls -la /var/www/py
    can you post the full /etc/*/apache2.conf || httpd.conf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...