Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with Mod_python and Apache 1.3.27
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
feliperal
Apprentice
Apprentice


Joined: 09 Mar 2003
Posts: 168

PostPosted: Wed Jul 09, 2003 12:06 pm    Post subject: Problems with Mod_python and Apache 1.3.27 Reply with quote

I'm having a bad ass time with running .py scripts that I have written in Apache 1.3.27. I followed the directions as specified at http://www.modpython.org/live/mod_python-2.7.8/doc-html/inst-apacheconfig.html .

I ran the ebuild /var/db/pkg/dev-python/mod_python-2.7.8/mod_python-2.7.8.ebuild config command. This set the following in the /etc/apache/conf/apache.conf file:
Code:

<IfDefine PYTHON>
AddModule mod_python.c
</IfDefine>


Also, I edited the /etc/apache/conf/addon-modules as sugested at modpython.org
Code:

<IfModule mod_python.c>
                                                                               
        AddHandler python-program .py
        <Directory /home/httpd/htdocs/python>
                AddHandler python-program .py
                PythonHandler mptest
                PythonDebug On
        </Directory>
                                                                               
</IfModule>
                                                                               


I made a sample file called mptest.py and placed it in the /home/htdocs/python folder. I tried accessing it by going to http://localhost/python/mptest.py and http://localhost/mptest.py. I get that I don't have access permissions. I tried doing a chmod +x to the file. I'm fucked and almost have given up. If I'm doing something wrong please till me.

Also, is there a way to add a Directory handler to execute all *.py scripts in the http://www.domain.tld/python/ directory?

Thanks, I appreciate any help. The install documentation at modpython.org is kind of generic and vague.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum