简体   繁体   English

PHP Pear package 未安装在 IIS10 上

[英]PHP Pear package not installing on IIS10

I downloaded https://pear.php.net/go-pear.phar accordingly and placed it to我相应地下载了 https://pear.php.net/go-pear.phar并将其放置到

c:/Program Files (x86)/PHP/v5.3/

And went in to CMD with admin rights, proceeded to the above directory and key'ed in并以管理员权限进入 CMD,进入上述目录并键入

php go-pear.phar

Then I initiated a system wide installation and only did the following然后我启动了系统范围的安装,只做了以下

installation log screenshot安装日志截图

And it failed to do the following:它未能做到以下几点:

  • Confirm the installation确认安装
  • pear command is unrecognized when running it on CMD pear 命令在 CMD 上运行时无法识别

My system is Windows Server 2012 running IIS10, and using PHP v5.3.我的系统是 Windows Server 2012,运行 IIS10,并使用 PHP v5.3。

Any suggestion will be greatly appreciated.任何建议将不胜感激。 Thanks in advance.提前致谢。

The Pear command only works after we add the installation path to your Path environment.只有在我们将安装路径添加到您的 Path 环境后,Pear 命令才有效。

Either do this manually (Start > Control Panel > System > Environment) or run (double-click) the newly generated PEAR_ENV.reg that's now found in the PHP source directory.手动执行此操作(开始 > 控制面板 > 系统 > 环境)或运行(双击)现在在 PHP 源目录中找到的新生成的 PEAR_ENV.reg。

Then we can run the command Pear in a Windows Command Prompt.然后我们可以在 Windows 命令提示符中运行命令 Pear。
Here is the official manual of installing the PEAR package manager in Windows.这是Windows安装PEAR package管理器的官方手册。
https://pear.php.net/manual/en/installation.getting.php https://pear.php.net/manual/en/installation.getting.php
If it doesn't work yet, I suggest you install some other newer PHP version, such as PHP 5.8, afterward we execute the PEAR installation.如果还不行,我建议你安装一些其他更新的PHP版本,比如PHP 5.8,然后我们执行PEAR安装。
Feel free to let me know if there is anything如果有什么,请随时告诉我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM