未安装服务“ Apache”的ConfigArg,使用Apache默认值

问题描述 投票:1回答:1

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

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

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

如何解决此错误?

windows apache httpd.conf apache2.4
1个回答
0
投票

Apache正在寻找注册表项

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

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

或者如果您需要Wix来做:

  <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>
© www.soinside.com 2019 - 2024. All rights reserved.