Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configurationAction 'configtest' failed

Techie picture Techie · Dec 17, 2013 · Viewed 36k times · Source

I got the below error while I was configuring CKAN DataPusher.

Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configurationAction 'configtest' failed.

How can I fix this?

Answer

Techie picture Techie · Dec 17, 2013

Try to enable wsgi mod in Apache

sudo a2enmod wsgi

If you come across below error

ERROR: Module mod-wsgi does not exist!

You will have to install mod wsgi as below. What you have to do is run the following commands,

sudo apt-get install libapache2-mod-wsgi
sudo a2enmod wsgi
sudo service apache2 restart