我在 Windows Server 2008 R2 的 D 盘上手动安装了 PHP 5.4.13。
今天我尝试通过命令行直接使用 php.exe 运行脚本,但出现两个错误弹出窗口:
The procedure entry point php_set_error_handling could not be located in the dynamic link library php5ts.dll
The procedure entry point php_checkuid could not be located in the dynamic link library php5ts.dll
然后,我意识到 C:\Program Files 中有一个旧的 PHP 5.2,所以我删除了它。然后,我在命令行上收到错误:
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5\ext\php_gd2.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5\ext\php_mbstring.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5\ext\php_mysql.dll' - The specified module could not be found.
in Unknown on line 0
Fatal error: Directive 'allow_call_time_pass_reference is no longer available in PHP in Unknown on line 0
C:\php5 从未存在过,与 D 盘上的 PHP 5.4 无关。
而且,PHP 5.4 路径是环境变量中的第一个路径PATH
。
但是,通过 Apache 访问 .php 文件是可以的。
任何帮助都将受到赞赏。