mod_python, htaccess on a shared host with Apache2

58 views
Skip to first unread message

Niktar

unread,
Jun 23, 2009, 2:43:45 AM6/23/09
to web2py Web Framework
For run web2py I needed the following:

1. Place contents of web2py in a htdocs folder

2. From modpythonhandler.py remove Grave Accent (`) symbol at the end
of file.

3. Create web2py_modpython.py file:

from mod_python import apache
import modpythonhandler

def handler(req):
req.subprocess_env['PATH_INFO'] = req.subprocess_env
['SCRIPT_URL']
return modpythonhandler.handler(req)

4. create/update .htaccess file:

SetHandler python-program
PythonHandler web2py_modpython
##PythonDebug On



niktar

JorgeR

unread,
Jun 23, 2009, 10:25:17 AM6/23/09
to web2py Web Framework
Is that a question?

mdipierro

unread,
Jun 23, 2009, 12:31:15 PM6/23/09
to web2py Web Framework
oops. thanks for reporting about the grave accent. I gather these are
instructions. Would you make an AlterEgo page about this? I will fix
the accent in trunk.

On Jun 23, 1:43 am, Niktar <nik...@rbcmail.ru> wrote:
Reply all
Reply to author
Forward
0 new messages