OK Maximo here the log:
MOD_PYTHON ERROR ProcessId: 15678 Interpreter: 'www.empresasdomotica.com' ServerName: 'www.empresasdomotica.com' DocumentRoot: '/home/sangar05/domains/empresasdomotica.com/ public_html' URI: '/' Location: None Directory: '/home/sangar05/domains/empresasdomotica.com/ public_html/' Filename: '/home/sangar05/domains/empresasdomotica.com/ public_html/' PathInfo: '' Phase: 'PythonHandler' Handler: 'web2py_modpython' Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch default=default_handler, arg=req, silent=hlist.silent) File "/usr/lib/python2.3/site-packages/mod_python/importer.py", line 1202, in _process_target module = import_module(module_name, path=path) File "/usr/lib/python2.3/site-packages/mod_python/importer.py", line 296, in import_module log, import_path) File "/usr/lib/python2.3/site-packages/mod_python/importer.py", line 680, in import_module execfile(file, module.__dict__) File "/home/sangar05/domains/empresasdomotica.com/public_html/ web2py_modpython.py", line 2 import modpythonhandler ^ SyntaxError: invalid syntax MODULE CACHE DETAILS Accessed: Mon Oct 18 05:29:16 2010 Generation: 0 _mp_63fde3c7ff02e844e766cd3a6c83184d { FileName: '/home/sangar05/domains/empresasdomotica.com/ public_html/web2py_modpython.py' Instance: 1 [IMPORT] Generation: 0 [ERROR] Modified: Tue Sep 21 10:43:52 2010 } I think is important for a lot of people that love web2py and need easy deploy. Other question, Is possible with mod_cgi and mod_rewrite if you have ssh access. Thank you again. Best regards Víctor On 25 sep, 17:08, mdipierro <mdipie...@cs.depaul.edu> wrote: > I need the traceback from the apache log. It could be a path error or > a permission error. > I should say I have tested mod_python long ago but nobody uses it any > more mod_python is no longer an active project. > > On Sep 25, 2:59 am, victors <victor.san...@gmail.com> wrote: > > > > > Hi, > > My hosting had mod_python, and i follow this(http://web2py.com/book/ > > default/chapter/11#Shared-Hosting-with-mod_python): > > " > > Place contents of web2py into the "htdocs" folder. > > > In the web2py folder, create a file "web2py_modpython.py" file > > with the following contents: > > > from mod_python import apache > > import modpythonhandler > > > def handler(req): > > req.subprocess_env['PATH_INFO'] = > > req.subprocess_env['SCRIPT_URL'] > > return modpythonhandler.handler(req) > > > Create/update the file ".htaccess" with the following contents: > > SetHandler python-program > > PythonHandler web2py_modpython > > #PythonDebug On > > " > > > But have a ERROR when i trywww.domain.com: > > "Internal Server Error > > > The server encountered an internal error or misconfiguration and was > > unable to complete your request. > > > Please contact the server administrator, > > webmas...@empresasdomotica.com and inform them of the time the error > > occurred, and anything you might have done that may have caused the > > error. > > > More information about this error may be available in the server error > > log. > > > Additionally, a 500 Internal Server Error error was encountered while > > trying to use an ErrorDocument to handle the request. > > " > > Can anybody help with this. > > > thank you in advance. > > > Best regards > >Victor- Ocultar texto de la cita - > > - Mostrar texto de la cita -