使用Apache默认值,未为服务"Apache"安装ConfigArgs [英] No installed ConfigArgs for the service "Apache", using Apache defaults

查看:196
本文介绍了使用Apache默认值,未为服务"Apache"安装ConfigArgs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在32位Windows 7服务器上安装了Apache 2.4.

I have installed Apache 2.4 on windows 7 server 32 bit.

当我重新启动apache服务时,在Windows事件查看器中会生成以下事件

When I restart the apache service, in the windows event Viewer below event is generated

[pid 2864:tid 400] (OS 2)The 
system cannot find the file specified.  : AH00435: No installed ConfigArgs for 
the service "Apache", using Apache defaults.

如何解决此错误?

推荐答案

Apache正在寻找注册表项

Apache is looking for a registry key

HKLM\SYSTEM\ControlSet001\Services\<service_name>\Parameters\ConfigArgs

类型为REG_MULTI_SZ,可以为空.在您的"Parameters"服务下手动创建新键,然后使用一个新的多字符串变量"为空.

Of type REG_MULTI_SZ, which can be empty. Manually creating the new key under your service of Parameters, then a new "Multi-String Variable" that is empty works.

或者如果您需要Wix来做到这一点:

Or if you need Wix to do it:

  <Component Id="CMP_RegistryEntries" Guid="{guid}" Directory="logs" KeyPath="yes">
    <RegistryKey Root="HKLM" Key="SYSTEM\ControlSet001\Services\$(var.Apache_SVC_Name)\Parameters" ForceCreateOnInstall="yes">
      <RegistryValue Name="ConfigArgs" Action="write" Type="multiString">
        <MultiStringValue Name="ConfigArgs" Action="write" Type="multiString"></MultiStringValue>
      </RegistryValue>
    </RegistryKey>
  </Component>

这篇关于使用Apache默认值,未为服务"Apache"安装ConfigArgs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆