配置文件:
<Location /svn>
Order Deny,Allow
Deny from all
DAV svn
SVNListParentPath on
SVNParentPath /data/svnrepo
AuthzSVNAccessFile /data/svnrepo/authz
AuthMySQLEnable On
AuthMySQLHost 172.16.12.49
AuthMySQLUser redmine
AuthMySQLPassword redmine
AuthMySQLDB redmine
AuthMySQLUserTable "users"
AuthMySQLNameField login
AuthMySQLPasswordField hashed_password
AuthMySQLPwEncryption sha1
AuthMySQLUserCondition "users.`status` = 1"
Require valid-user
</Location>
报错:
[root@kvm conf.d]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 49 of /etc/httpd/conf.d/subversion.conf:
Invalid command 'AuthMySQLEnable', perhaps misspelled or defined by a module not included in the server configuration
[FAILED]
解决方法:
[root@kvm conf.d]# yum install -y mod_auth_mysql.x86_64
阅读(3215) | 评论(0) | 转发(0) |