feliperal Apprentice
Joined: 09 Mar 2003 Posts: 168
|
Posted: Wed Jul 09, 2003 12:06 pm Post subject: Problems with Mod_python and Apache 1.3.27 |
|
|
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. |
|