当我尝试运行命令“PHP”时出错:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib
/php/20151012
/php_pdo_firebird.dll' - /usr/lib/php/20151012/php_pdo_firebird.dll:
cannot open
shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/li
b/php/20151012
/php_pdo_oci.dll' - /usr/lib/php/20151012/php_pdo_oci.dll: cannot open
shared ob
ject file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/
php/20151012
/php_pdo_oci.dll' - /usr/lib/php/20151012/php_pdo_oci.dll: cannot open
shared ob
ject file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/
php/20151012
/php_pdo_odbc.dll' - /usr/lib/php/20151012/php_pdo_odbc.dll: cannot
open shared
object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib
/php/20151012
/php_pdo_pgsql.dll' - /usr/lib/php/20151012/php_pdo_pgsql.dll: cannot
open share
d object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/
php/20151012
/php_pdo_sqlite.dll' - /usr/lib/php/20151012/php_pdo_sqlite.dll:
cannot open sha
red object file: No such file or directory in Unknown on line 0
我尝试安装PHP-mbstring和PHP-Intl,但它仍无效。
我使用debian 9在PHP 7.0中运行。 我现在不知道该怎么做。
感谢您的回答! (抱歉我的英语不好^^)
答案 0 :(得分:0)
转到您的../php/php.ini
文件,检查是否启用了显示为警告的所有 .dll 文件。如果未启用,则启用它们。如果问题仍然存在,请检查您的../php/ext
文件夹,看看是否有那些 .dll 文件。否则你必须手动下载并粘贴到该文件夹中。