실수로 모든 PHP 동적 라이브러리를 제거했습니다.

실수로 모든 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를 재설치해 보았으나 작동하지 않는 것 같습니다.

어쨌든 해당 파일을 다시 복구할 수 있나요?

편집: 나는 이것을 반대 투표한 이유를 모르지만 백업이 없습니다.

답변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

관련 정보