问题
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?
回答1:
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
回答2:
To enable wsgi_mod in httpd, install the module
sudo yum 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
回答3:
I think you might need to add this line in your apache2.conf
LoadModule wsgi_module "/usr/local/lib/python3.6/dist-packages/mod_wsgi/server/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so"
Below command will give you the above output
mod_wsgi-express module-config
来源:https://stackoverflow.com/questions/20627327/invalid-command-wsgiscriptalias-perhaps-misspelled-or-defined-by-a-module-not