Apache - Invalid command 'SSLMutex'

好久不见. 提交于 2019-12-03 08:17:25

问题


I am in the process of upgrading Apache version from 2.0 to 2.4. After 2.4 installed, I have faced below issue.

Invalid command 'SSLMutex', perhaps misspelled or defined by a module not included in the server configuration
AH00526: Syntax error on line 77 of /apache/conf/ssl.conf:

The line #77 in ssl.conf is SSLMutex file:/apache/logs/ssl_mutex.

I have loaded mod_ssl and along with I have loaded below mod also but still I could not fix this.

LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule socache_dbm_module modules/mod_socache_dbm.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so

NOTE: If I comment out the SSLMutex line in ssl.conf file then Apache is working including SSL port. I am afraid what will happen if SSLMutex issue is not resolved. Please suggest some solution.

thanks


回答1:


Replace SSLMutex with

Mutex default

The SSLMutex has been Dropped after 2.2




回答2:


Unless you had some specific mutex configuration on your 2.2, just commenting out this line will prompt Apache to use the default mutex mechanism. See the documentation for upgrading 2.2 to 2.4 and the mutex directive documentation.




回答3:


If you want the equivalent Apache SSL config use:

Mutex file:/apache/logs/ssl_mutex

The ssl_mutex is a directory on a drive local to the server, accessible by Apache (httpd process), not in a global readable directory (e.g. not in '/tmp') and not on a network storage (e.g. not NFS).

Reference: Apache Core Features



来源:https://stackoverflow.com/questions/13969272/apache-invalid-command-sslmutex

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