安装cobbler 启动httpd 报错:
- [root@cmbp010 yum.repos.d]# service httpd start
- 启动 httpd:Syntax error on line 10 of /etc/httpd/conf.d/cobbler.conf:
- Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration
- [失败]
错误原因:模块mod_wsgi.so未启动,手工开启下:编辑/etc/httpd/conf.d/wsgi.conf ,取消注释"LoadModule wsgi_module modules/mod_wsgi.so"即可
- #################################################################################
- # mod_python and mod_wsgi compatibility note
- #################################################################################
- # mod_wsgi will deadlock if run in daemon mode while mod_python is enabled
- # do not enable both mod_python and mod_wsgi if you are going to use the
- # WSGIDaemonProcess directive
- # In previous version of mod_wsgi, apache would segfault when both mod_wsgi
- # and mod_python were enabled. This update does not guarantee that will not
- # happen.
- #################################################################################
- # Do not enable mod_python and mod_wsgi in the same apache process.
- #################################################################################
- LoadModule wsgi_module modules/mod_wsgi.so
- ~
- ~
- ~
- ~
- "/etc/httpd/conf.d/wsgi.conf" 14L, 828C 已写入