Apache-2.2
不小心刪除了所有 PHP 動態庫
我試圖刪除啟動模組文件夾(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,但似乎不起作用
無論如何我可以恢復這些文件。
編輯:我不知道拒絕投票的原因,但我沒有備份。
PHP5 包不提供一些擴展。這是 Debian Squeeze 的列表
https://packages.debian.org/squeeze/php/
按正確名稱選擇這些擴展,然後使用 apt-get 重新安裝
例如:
apt-get reinstall php5-mysql
其中一些只能通過 PECL http://pecl.php.net/安裝
例如:
pecl install pdo