Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 831
Techie Avatar asked Dec 17 '13 06:12

Techie


2 Answers

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 
like image 50
Techie Avatar answered Oct 11 '22 16:10

Techie


To enable wsgi_mod in httpd, install the module

sudo yum install mod_wsgi 

and make sure to load the module in the httpd config file

sudo nano /etc/httpd/conf/httpd.conf 

then add the following line in the config file, to the list of other loaded module:

LoadModule wsgi_module modules/mod_wsgi.so 
like image 29
Samer Avatar answered Oct 11 '22 15:10

Samer