PHP IIS 管理器安装失败 Windows 10
PHP Manager IIS fails to install Windows 10
我最近从 windows 8 安装了 windows 10,我正在尝试设置 IIS 以创建一个 wordpress 站点。老实说,我不知道这意味着什么:
MSI (s) (F8:A0) [16:13:26:773]: Skipping action: ERRCA_CANCELNEWERVERSION (condition is false)
MSI (s) (F8:A0) [16:13:26:773]: Doing action: VSDCA_VsdLaunchConditions
Action ended 16:13:26: FindRelatedProducts. Return value 1.
MSI (s) (F8:A0) [16:13:26:774]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'VSDCA_VsdLaunchConditions'
MSI (s) (F8:E8) [16:13:26:776]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSI5B2B.tmp, Entrypoint: VsdLaunchConditions
Action start 16:13:26: VSDCA_VsdLaunchConditions.
INFO : [05/02/2016 16:13:26:778] [VsdLaunchConditions ]: Custom Action is starting...
INFO : [05/02/2016 16:13:26:778] [VsdLaunchConditions ]: CoInitializeEx - COM initialization Apartment Threaded...
INFO : [05/02/2016 16:13:26:779] [VsdLaunchConditions ]: Enumerating table using SQL statement: 'SELECT * FROM `_VsdLaunchCondition`'
INFO : [05/02/2016 16:13:26:780] [VsdLaunchConditions ]: Calling MsiGetActiveDatabase...
INFO : [05/02/2016 16:13:26:781] [VsdLaunchConditions ]: MsiDatabaseOpenViewW - Prepare Database to view table...
INFO : [05/02/2016 16:13:26:781] [VsdLaunchConditions ]: TMsiViewExecute - Open Database view on table...
INFO : [05/02/2016 16:13:26:782] [VsdLaunchConditions ]: Checking a launch condition...
INFO : [05/02/2016 16:13:26:782] [VsdLaunchConditions ]: Getting the condition to evaluate...
INFO : [05/02/2016 16:13:26:782] [VsdLaunchConditions ]: MsiRecordGetStringW - Fetching value...
INFO : [05/02/2016 16:13:26:783] [VsdLaunchConditions ]: MsiRecordGetStringW - Getting value from column '1'...
INFO : [05/02/2016 16:13:26:783] [VsdLaunchConditions ]: Evaluating condition 'VersionNT64'...
INFO : [05/02/2016 16:13:26:784] [VsdLaunchConditions ]: RESULT: Condition is true. Nothing more to do.
INFO : [05/02/2016 16:13:26:785] [VsdLaunchConditions ]: Checking a launch condition...
INFO : [05/02/2016 16:13:26:785] [VsdLaunchConditions ]: Getting the condition to evaluate...
INFO : [05/02/2016 16:13:26:785] [VsdLaunchConditions ]: MsiRecordGetStringW - Fetching value...
INFO : [05/02/2016 16:13:26:786] [VsdLaunchConditions ]: MsiRecordGetStringW - Getting value from column '1'...
INFO : [05/02/2016 16:13:26:786] [VsdLaunchConditions ]: Evaluating condition 'IISREGISTRYVALUE >= "#7"'...
INFO : [05/02/2016 16:13:26:787] [VsdLaunchConditions ]: RESULT: Condition is false.
INFO : [05/02/2016 16:13:26:787] [VsdLaunchConditions ]: MsiRecordGetStringW - Fetching value...
INFO : [05/02/2016 16:13:26:787] [VsdLaunchConditions ]: MsiRecordGetStringW - Getting value from column '2'...
INFO : [05/02/2016 16:13:26:788] [VsdLaunchConditions ]: MsiSetPropertyW - Setting Property Value...
MSI (s) (F8!14) [16:13:26:789]: PROPERTY CHANGE: Adding HideFatalErrorForm property. Its value is 'TRUE'.
INFO : [05/02/2016 16:13:26:789] [VsdLaunchConditions ]: MsiSetPropertyW - Setting property 'HideFatalErrorForm' to 'TRUE'.
INFO : [05/02/2016 16:13:26:789] [VsdLaunchConditions ]: Checking a launch condition...
INFO : [05/02/2016 16:13:26:790] [VsdLaunchConditions ]: A launch condition has already fired. My work is done here.
ERROR : [05/02/2016 16:13:26:790] [VsdLaunchConditions ]: Custom Action failed with code: '1603'
INFO : [05/02/2016 16:13:26:791] [VsdLaunchConditions ]: Custom Action completed with return code: '1603'
CustomAction VSDCA_VsdLaunchConditions returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 16:13:26: VSDCA_VsdLaunchConditions. Return value 3.
Action ended 16:13:26: INSTALL. Return value 3.
MSI (s) (F8:A0) [16:13:26:794]: Note: 1: 1708
MSI (s) (F8:A0) [16:13:26:794]: Product: PHP Manager 1.2 for IIS 7 -- Installation failed.
MSI (s) (F8:A0) [16:13:26:794]: Windows Installer installed the product. Product Name: PHP Manager 1.2 for IIS 7. Product Version: 1.2.0. Product Language: 1033. Manufacturer: . Installation success or error status: 1603.
MSI (s) (F8:A0) [16:13:26:796]: Deferring clean up of packages/files, if any exist
MSI (s) (F8:A0) [16:13:26:796]: MainEngineThread is returning 1603
MSI (s) (F8:98) [16:13:26:798]: RESTART MANAGER: Session closed.
MSI (s) (F8:98) [16:13:26:798]: No System Restore sequence number for this installation.
我只能假设这部分 CustomAction VSDCA_VsdLaunchConditions 返回的实际错误代码 1603 是导致我出现问题的原因。
在这种情况下我找到了这个 https://forums.iis.net/t/1207407.aspx .net 3.5 已安装并启用,所以我不知道从这里去哪里...
看起来安装程序在检查 IIS 版本时失败了。
以下 Microsoft Answers 页面表明一些注册表黑客攻击可能会解决问题..
文章
更改注册表项的值:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\MajorVersion
The value is 10 (Ax0). Just change the value to 9 (or 8), then try to install it again. To avoid future issues with other IIS stuff, change back to 10 (Ax0). It seems that PHP Manager validates the value...Here is the issue from PHP Manager's website https://phpmanager.codeplex.com/workitem/2653
目前,如果使用 Web 平台安装程序,安装也会失败,因为 Web 平台安装程序使用的 Codeplex 下载 link 不再存在。
幸运的是,有人创建了 GitHub repository 来更新 PHP 管理器。存储库提供了一些新版本 应该可以在没有注册表 hack 的情况下工作。
可以在此处下载 MSI 安装程序: https://github.com/RonaldCarter/PHPManager/releases
在 Windows Server 2012 R2 none 上的 Web 平台安装程序对我有用。他们要么在安装过程中抛出错误,要么安装了过时版本的 PHP,没有用于连接到 MySql 服务器的本机驱动程序。对我有用的是从 sourceforge 安装 PHP Manager here from MS and then pointing it to php-cgi.exe contained in the folder of PHP 7.0 which I downloaded here。