Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

248
Vistas
wsgi cant find modules in virtualenv in weblate + apache2 + wsgi setup

I got the weblate running in dev mode with :8000. But I am not able to get it running in apache2 with wsgi within the virtual environment, where everything worked.

Based on apache errors, it could not even find django installed. I did that but saw another error of a missing module. Its clear that wsgi is not respecting/searching for modules in the virtualenv for python.

My server is Ubuntu 19.04.

Please suggest.

<VirtualHost *:80>
    ServerName xxyyzz.com

    # DATA_DIR/static/favicon.ico
    Alias /favicon.ico xxyyzz/weblate-env/lib/python3.7/site-packages/data/static/favicon.ico

    # DATA_DIR/static/
    Alias /static/ xxyyzz/weblate-env/lib/python3.7/site-packages/data/static/
    <Directory xxyyzz/weblate-env/lib/python3.7/site-packages/data/static/>
        Require all granted
    </Directory>

    # DATA_DIR/media/
    Alias /media/ xxyyzz/weblate-env/lib/python3.7/site-packages/data/media/
    <Directory /home/weblate/data/media/>
        Require all granted
    </Directory>

    # Path to your Weblate virtualenv
    WSGIDaemonProcess weblate python-path=xxyyzz/weblate-env
    WSGIProcessGroup weblate
    WSGIApplicationGroup weblate

    WSGIScriptAlias / xxyyzz/weblate-env/lib/python3.7/site-packages/weblate/wsgi.py process-group=weblate
    WSGIPassAuthorization On

    <Directory xxyyzz/weblate-env/lib/python3.7/site-packages/weblate/>
        <Files wsgi.py>
        Require all granted
        </Files>
    </Directory>

</VirtualHost>

Same as: https://docs.weblate.org/en/latest/admin/install.html

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It turns out that the example configuration is wrong, it should be using python-path instead of python-home for WSGIDaemonProcess. I've just fixed this in Weblate and you will probably need such change in your configuration as well.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda