1、在重裝的系統windows7中安裝wampserver,啟動服務時,無法成功啟動apache
,報錯如下:
2、知道問題是因為遺失VC運行庫,下載安裝VC2015運行庫,報錯:
#3、以下為日誌檔內容:
[137C:1380][2016-03-01T09:43:34]i001: Burn v3.7.3813.0, Windows v6.1 (Build 7600: Service Pack 0), path: C:\Users\liang\Downloads\vc_redist.x64.exe, cmdline: ''
[137C:1380][2016-03-01T09:43:34]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\liang\AppData\Local\Temp\dd_vcredist_amd64_20160301094334.log'
[137C:1380][2016-03-01T09:43:34]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\liang\Downloads\vc_redist.x64.exe'
[137C:1380][2016-03-01T09:43:34]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\liang\Downloads\'
[137C:1380][2016-03-01T09:43:34]i100: Detect begin, 10 packages
[137C:1380][2016-03-01T09:43:34]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.10046.0'
[137C:1380][2016-03-01T09:43:34]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i052: Condition '(windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10137.0)' evaluates to false.
[137C:1380][2016-03-01T09:43:34]i101: Detected package: vcRuntimeMinimum_x64, state: Present, cached: Complete
[137C:1380][2016-03-01T09:43:34]i101: Detected package: vcRuntimeAdditional_x64, state: Present, cached: Complete
[137C:1380][2016-03-01T09:43:34]i101: Detected package: Windows81_x86, state: Absent, cached: None
[137C:1380][2016-03-01T09:43:34]i101: Detected package: Windows81_x64, state: Absent, cached: None
[137C:1380][2016-03-01T09:43:34]i101: Detected package: Windows8_x86, state: Absent, cached: None
[137C:1380][2016-03-01T09:43:34]i101: Detected package: Windows8_x64, state: Absent, cached: None
[137C:1380][2016-03-01T09:43:34]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
[137C:1380][2016-03-01T09:43:34]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: Complete
[137C:1380][2016-03-01T09:43:34]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[137C:1380][2016-03-01T09:43:34]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[137C:1380][2016-03-01T09:43:34]i052: Condition 'VersionNT64 >= v6.0 OR (VersionNT64 = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[137C:1380][2016-03-01T09:43:34]i199: Detect complete, result: 0x0
[137C:1380][2016-03-01T09:43:37]i200: Plan begin, 10 packages, action: Repair
[137C:1380][2016-03-01T09:43:37]i052: Condition '(VersionNT64)' evaluates to true.
[137C:1380][2016-03-01T09:43:37]i000: Setting string variable 'WixBundleLog_vcRuntimeMinimum_x64' to value 'C:\Users\liang\AppData\Local\Temp\dd_vcredist_amd64_20160301094334_000_vcRuntimeMinimum_x64.log'
[137C:1380][2016-03-01T09:43:37]i052: Condition '(VersionNT64)' evaluates to true.
[137C:1380][2016-03-01T09:43:37]i000: Setting string variable 'WixBundleLog_vcRuntimeAdditional_x64' to value 'C:\Users\liang\AppData\Local\Temp\dd_vcredist_amd64_20160301094334_001_vcRuntimeAdditional_x64.log'
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.3 AND NOT VersionNT64' evaluates to false.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: Windows81_x86
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.3 AND VersionNT64' evaluates to false.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: Windows81_x64
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.2 AND NOT VersionNT64' evaluates to false.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: Windows8_x86
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.2 AND VersionNT64' evaluates to false.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: Windows8_x64
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.1 AND NOT VersionNT64' evaluates to false.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x86
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.1 AND VersionNT64' evaluates to true.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x64
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.0 AND NOT VersionNT64' evaluates to false.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x86
[137C:1380][2016-03-01T09:43:37]i052: Condition 'VersionNT = v6.0 AND VersionNT64' evaluates to false.
[137C:1380][2016-03-01T09:43:37]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x64
[137C:1380][2016-03-01T09:43:37]i201: Planned package: vcRuntimeMinimum_x64, state: Present, default requested: Repair, ba requested: Repair, execute: Repair, rollback: None, cache: No, uncache: No, dependency: Register
[137C:1380][2016-03-01T09:43:37]i201: Planned package: vcRuntimeAdditional_x64, state: Present, default requested: Repair, ba requested: Repair, execute: Repair, rollback: None, cache: No, uncache: No, dependency: Register
[137C:1380][2016-03-01T09:43:37]i201: Planned package: Windows81_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i201: Planned package: Windows81_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i201: Planned package: Windows8_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i201: Planned package: Windows8_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i201: Planned package: Windows7_MSU_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i201: Planned package: Windows7_MSU_x64, state: Absent, default requested: Repair, ba requested: Repair, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i201: Planned package: WindowsVista_MSU_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i201: Planned package: WindowsVista_MSU_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[137C:1380][2016-03-01T09:43:37]i299: Plan complete, result: 0x0
[137C:1380][2016-03-01T09:43:37]i300: Apply begin
[0B30:0E10][2016-03-01T09:43:39]i360: Creating a system restore point.
[0B30:0E10][2016-03-01T09:43:45]i361: Created a system restore point.
[0B30:0E10][2016-03-01T09:43:45]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e46eca4f-393b-40df-9f49-076faf788d83}, resume: Active, restart initiated: No, disable resume: No
[0B30:0FA4][2016-03-01T09:43:46]i304: Verified existing payload: vcRuntimeMinimum_x64 at path: C:\ProgramData\Package Cache\{0D3E9E15-DE7A-300B-96F1-B4AF12B96488}v14.0.23026\packages\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi.
[0B30:0FA4][2016-03-01T09:43:46]i304: Verified existing payload: cab5046A8AB272BF37297BB7928664C9503 at path: C:\ProgramData\Package Cache\{0D3E9E15-DE7A-300B-96F1-B4AF12B96488}v14.0.23026\packages\vcRuntimeMinimum_amd64\cab1.cab.
[0B30:0FA4][2016-03-01T09:43:46]i304: Verified existing payload: vcRuntimeAdditional_x64 at path: C:\ProgramData\Package Cache\{BC958BD2-5DAC-3862-BB1A-C1BE0790438D}v14.0.23026\packages\vcRuntimeAdditional_amd64\vc_runtimeAdditional_x64.msi.
[0B30:0FA4][2016-03-01T09:43:46]i304: Verified existing payload: cab2C04DDC374BD96EB5C8EB8208F2C7C92 at path: C:\ProgramData\Package Cache\{BC958BD2-5DAC-3862-BB1A-C1BE0790438D}v14.0.23026\packages\vcRuntimeAdditional_amd64\cab1.cab.
[0B30:0FA4][2016-03-01T09:43:46]i304: Verified existing payload: Windows7_MSU_x64 at path: C:\ProgramData\Package CacheD5BEC7DDFBD49E76467529CBC2868987BF8460\packages\Patch\x64\Windows6.1-KB2999226-x64.msu.
[0B30:0E10][2016-03-01T09:43:46]i301: Applying execute package: vcRuntimeMinimum_x64, action: Repair, path: C:\ProgramData\Package Cache\{0D3E9E15-DE7A-300B-96F1-B4AF12B96488}v14.0.23026\packages\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi, arguments: ' MSIFASTINSTALL="7" NOVSUI="1"'
[137C:1380][2016-03-01T09:43:47]i319: Applied execute package: vcRuntimeMinimum_x64, result: 0x0, restart: None
[0B30:0E10][2016-03-01T09:43:47]i325: Registering dependency: {e46eca4f-393b-40df-9f49-076faf788d83} on package provider: Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v14, package: vcRuntimeMinimum_x64
[0B30:0E10][2016-03-01T09:43:47]i301: Applying execute package: vcRuntimeAdditional_x64, action: Repair, path: C:\ProgramData\Package Cache\{BC958BD2-5DAC-3862-BB1A-C1BE0790438D}v14.0.23026\packages\vcRuntimeAdditional_amd64\vc_runtimeAdditional_x64.msi, arguments: ' MSIFASTINSTALL="7" NOVSUI="1"'
[137C:1380][2016-03-01T09:43:47]i319: Applied execute package: vcRuntimeAdditional_x64, result: 0x0, restart: None
[0B30:0E10][2016-03-01T09:43:47]i325: Registering dependency: {e46eca4f-393b-40df-9f49-076faf788d83} on package provider: Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v14, package: vcRuntimeAdditional_x64
[0B30:0E10][2016-03-01T09:43:47]i301: Applying execute package: Windows7_MSU_x64, action: Install, path: C:\ProgramData\Package CacheD5BEC7DDFBD49E76467529CBC2868987BF8460\packages\Patch\x64\Windows6.1-KB2999226-x64.msu, arguments: '"C:\Windows\SysNative\wusa.exe" "C:\ProgramData\Package CacheD5BEC7DDFBD49E76467529CBC2868987BF8460\packages\Patch\x64\Windows6.1-KB2999226-x64.msu" /quiet /norestart'
[0B30:0E10][2016-03-01T09:43:48]e000: Error 0x80240017: Failed to execute MSU package.
[137C:1380][2016-03-01T09:43:48]e000: Error 0x80240017: Failed to configure per-machine MSU package.
[137C:1380][2016-03-01T09:43:48]i319: Applied execute package: Windows7_MSU_x64, result: 0x80240017, restart: None
[137C:1380][2016-03-01T09:43:48]e000: Error 0x80240017: Failed to execute MSU package.
[0B30:0E10][2016-03-01T09:43:48]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e46eca4f-393b-40df-9f49-076faf788d83}, resume: ARP, restart: None, disable resume: No
[0B30:0E10][2016-03-01T09:43:48]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e46eca4f-393b-40df-9f49-076faf788d83}, resume: ARP, restart initiated: No, disable resume: No
[137C:1380][2016-03-01T09:43:48]i399: Apply complete, result: 0x80240017, restart: None, ba requested restart: No
4、之後,我安裝了驅動,幾個是使用VC運行庫的都安裝失敗了,不知道何種原因,求大神幫忙解決! ! !謝謝啦! ! !
安裝VC2008,VC2010,VC2015等等所有運行庫,因為比較麻煩,可以直接使用驅動精靈
,它會自動掃描缺少的庫,並安裝該庫。
裝2010 2008試試
直接下載一個api-*的dll檔案放到系統碟的system32下面試試看。
這個要看你php哪個版本的,多少位的,再安裝對應的vc++函式庫才行,試試看