我试图删除启动模块文件夹(ioncube),但意外删除了 PHP 启动模块/扩展文件夹(debian)
现在我明白了
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/pdo.so' - /usr/lib/php5/20100525+lfs/pdo.so: 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/php5/20100525+lfs/curl.so' - /usr/lib/php5/20100525+lfs/curl.so: 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/php5/20100525+lfs/gd.so' - /usr/lib/php5/20100525+lfs/gd.so: 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/php5/20100525+lfs/mcrypt.so' - /usr/lib/php5/20100525+lfs/mcrypt.so: 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/php5/20100525+lfs/mysql.so' - /usr/lib/php5/20100525+lfs/mysql.so: 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/php5/20100525+lfs/mysqli.so' - /usr/lib/php5/20100525+lfs/mysqli.so: 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/php5/20100525+lfs/pdo_mysql.so' - /usr/lib/php5/20100525+lfs/pdo_mysql.so: 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/php5/20100525+lfs/pdo_pgsql.so' - /usr/lib/php5/20100525+lfs/pdo_pgsql.so: 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/php5/20100525+lfs/pgsql.so' - /usr/lib/php5/20100525+lfs/pgsql.so: 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/php5/20100525+lfs/suhosin.so' - /usr/lib/php5/20100525+lfs/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
我找不到任何与重新安装这些相关的文档。我尝试重新安装 PHP,但似乎不起作用
有什么办法可以恢复这些文件吗?
编辑:我不知道对此投反对票的原因,但我没有支持。
答案1
PHP5 软件包未提供某些扩展。以下是 Debian Squeeze 的列表
https://packages.debian.org/squeeze/php/
根据正确名称选择这些扩展,然后使用 apt-get 重新安装
例如:apt-get reinstall php5-mysql
有些只能通过 PECL 安装http://pecl.php.net/
例如:pecl install pdo