第一次只装了apache 2.2.14,安装subversion后按照svn中文安装手册里的步骤配置好后就完全没有问题;

后来准备装一个php集成环境,觉的再配置apache很麻烦,就把原来的apache删掉,准备用集成环境里的apache。

安全过程很简单,但是安装完成后照着原来的方法配置svn发现apache服务启动不了,出现以下错误:

The Apache service named reported the following error:
Cannot load mod_dav_svn.so into server: \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3

查里一下资料可能有两种情况:
第一种情况,可能是下面的两个模块没有正确的导入,也就是前面的“#”没有去掉:
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_module modules/mod_dav.so

第二种情况可能是:
也可能是缺少了dll库文件
按照资料所说将SVN的bin目录下libdb44.dll,libeay32.dll,ssleay32.dll三个文件拷贝到Apache的bin目录下,重启还是启动失败….
找了一圈没结果后去了Subversion的官方FAQ,faq要求我拷贝
libdb4*.dll, intl3_svn.dll, libeay32.dll and ssleay32.dll,拷贝后依然无效
这时看到了faq的最后一句话:
If this still does not resolve the problem, you should use a tool like Dependency Walker on mod_dav_svn.so to see if there are any other unresolved dependencies。
跑去下载了Dependency Walker 打开mod_dav_svn.so查看它需要的dll文件

看了一下需要的是
libapr-1.dll
libaprutil-1.dll
libsvn_delta-1.dll
libsvn_fs-1.dll
libsvn_repos-1.dll
libsvn_subr-1.dll
按照要求拷贝后Apache顺利启动,问题解决。

posted on 2011-05-13 16:02  tftknight  阅读(336)  评论(1编辑  收藏  举报