Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Saturday, April 28, 2012

Fatal Python error: Couldn't create autoTLSkey mapping

My last project I started with Django 1.4 and Django Compressor. Today I decided to deploy to the production its first version. I used nginx+Apache.

Everything seemed to be good but instead of normal page I got:
FilterError at /
Unable to apply CompilerFilter (lessc {infile} {outfile})
I tried to repeat the same with ./manage.py runserver. It works. So the issue not in configuration or lessc itself. Later I found here that it is Apache's issue and can be solved with
WSGIApplicationGroup %{GLOBAL}
directive in Apache's VirtualHost config.

It helped.

Friday, February 3, 2012

Setup Apache2's mod_wsgi on Ubuntu

If you get this when restarting Apache2 on Ubuntu
Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
it means you don't have mod_wsgi module installed.

These commands install and enable it.
sudo apt-get install libapache2-mod-wsgi
sudo a2enmod mod-wsgi
sudo /etc/init.d/apache2 restart