安装cobbler 启动httpd 报错:
 
 
  
  1. [root@cmbp010 yum.repos.d]# service httpd start 
  2. 启动 httpd:Syntax error on line 10 of /etc/httpd/conf.d/cobbler.conf: 
  3. Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration 
  4.                                                            [失败] 

错误原因:模块mod_wsgi.so未启动,手工开启下:编辑/etc/httpd/conf.d/wsgi.conf ,取消注释"LoadModule wsgi_module modules/mod_wsgi.so"即可

 
  
  1. ################################################################################# 
  2. # mod_python and mod_wsgi compatibility note 
  3. ################################################################################# 
  4. # mod_wsgi will deadlock if run in daemon mode while mod_python is enabled 
  5. # do not enable both mod_python and mod_wsgi if you are going to use the 
  6. # WSGIDaemonProcess directive 
  7. In previous version of mod_wsgi, apache would segfault when both mod_wsgi 
  8. and mod_python were enabled.  This update does not guarantee that will not 
  9. # happen.   
  10. ################################################################################# 
  11. # Do not enable mod_python and mod_wsgi in the same apache process. 
  12. ################################################################################# 
  13.  
  14. LoadModule wsgi_module modules/mod_wsgi.so 
  15. ~                                                                                
  16. ~                                                                                
  17. ~                                                                                
  18. ~                                                                                
  19. "/etc/httpd/conf.d/wsgi.conf" 14L, 828C 已写入