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

你说的曾经没有我的故事 提交于 2019-11-27 03:03:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!