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

后端 未结 3 1033
感动是毒
感动是毒 2020-12-09 07:25

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

Invalid command \'WSGIScriptAlias\', perhaps misspelled or defined by a module not in

相关标签:
3条回答
  • 2020-12-09 07:55

    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
    
    0 讨论(0)
  • 2020-12-09 08:07

    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
    
    0 讨论(0)
  • 2020-12-09 08:12

    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
    
    0 讨论(0)
提交回复
热议问题