Servicios > Asistencia al cliente

web2py?

(1/2) > >>

genes:
El servidor tiene mod_wsgi, por lo que seria posible instalar web2py. Pero no se como hacerlo, porque el tutorial que tengo de que hay que modificar el archivo de configuración de Apache, cosa que entiendo que no puedo hacer.
Aca está el tutorial:
http://web2py.com/book/default/section/11/2
Saludos,
SB.

shakaran:
Hola genes,

En ese tutorial indica los pasos en Apache como si fueras root, pero realmente no es necesario serlo para hacer las modificaciones que se piden.

Simplemente necesitas crear un archivo .htaccess con el contenido referido a tu usuario de Quijost. Por ejemplo asumiendo que tu usuario es genes, el archivo .htaccess podría ser:


--- Código: ---WSGIDaemonProcess web2py user=genes group=genes \
                           display-name=GROUP}
WSGIProcessGroup web2py
WSGIScriptAlias / /home/genes/web2py/wsgihandler.py

<Directory /home/genes/web2py>
    AllowOverride None
    Order Allow,Deny
    Deny from all
    <Files wsgihandler.py>
      Allow from all
    </Files>
  </Directory>

  AliasMatch ^/([^/]+)/static/(.*) \
           /home/genes/web2py/applications/$1/static/$2
  <Directory /home/genes/web2py/applications/*/static/>
    Order Allow,Deny
    Allow from all
  </Directory>

  <Location /admin>
  Deny from all
  </Location>

  <LocationMatch ^/([^/]+)/appadmin>
  Deny from all
  </LocationMatch>

--- Fin del código ---

genes:
Muchas gracias por la ayuda. Hice esto y tengo un error 500, mirando el log veo:

[Fri Apr 23 19:03:48 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration

¿Será que falta instalar algo en el server?

Otra cosa que noté (y saqué) es que habia una llave (}) de mas (que tiene final pero no apertura).

genes:
Ahora estuve haciendo mas pruebas y parece no tener modwsgi, porque estos son los errores que obtengo:


--- Código: ---[Fri Apr 23 19:19:08 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIScriptAlias&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:19:08 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIScriptAlias&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:19:08 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIScriptAlias&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:19:08 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIScriptAlias&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:18:14 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIProcessGroup&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:18:14 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIProcessGroup&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:18:14 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIProcessGroup&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:18:14 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIProcessGroup&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:07:15 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:07:15 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:07:14 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:07:14 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:03:49 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:03:49 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:03:48 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
[Fri Apr 23 19:03:48 2010] [alert] [client 201.213.107.72] /home/genes/public_html/.htaccess: Invalid command &#39;WSGIDaemonProcess&#39;, perhaps misspelled or defined by a module not included in the server configuration
--- Fin del código ---

shakaran:
He estado probando y no podemos ejecutarlo porque Cpanel usa internamente python-2.4 y no podemos actualizar sin poner en conflicto todo el server para utilizar web2py que usa python 2.6

http://quijost.com/sandbox/index.py

Aqui puedes ver las versiones de python y django que se utilizan. Hasta que Cpanel no actualice no podemos soportar web2py, lo sentimos.

Navegación

[0] Índice de Mensajes

[#] Página Siguiente

Ir a la versión completa