No installed ConfigArgs for the service “Apache”, using Apache defaults

僤鯓⒐⒋嵵緔 提交于 2020-02-04 22:57:39

问题


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

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.

How can I resolve this error?


回答1:


Apache is looking for a registry key

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

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.

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>


来源:https://stackoverflow.com/questions/54129720/no-installed-configargs-for-the-service-apache-using-apache-defaults

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