Remova tudo relacionado ao PHP no servidor Debian

0


Eu tentei compilar o PHP5.4 sozinho com o suporte ZTS que funcionou bem, mas parece que sempre que eu instalo a extensão com o apt-get como o apt-get install php5-mysql, ele não é instalado na pasta de extensão do recém compilado O PHP também não está habilitado no php.ini. Também muitos arquivos .so estão faltando (parece que o php.ini da construção é feito para windows?).

No entanto, eu gostaria de remover tudo relacionado ao PHP de alguma forma para que eu possa tentar novamente com um sistema limpo (er). Existe alguma maneira fácil de fazer isso?

Eu tentei copiar os arquivos da pasta de origem.

Eu tentei este tutorial e substitui a versão com 5.4.37: http://eddmann.com/posts/compiling-php-5-5-with-zts-and-pthreads-support/

Últimos erros que tive

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo.so' - /usr/lib/php5/20100525/pdo.so: undefined symbol: executor_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/curl.so' - /usr/lib/php5/20100525/curl.so: undefined symbol: core_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: enchant: Unable to initialize module\nModule compiled with build ID=API20100525,TS\nPHP    compiled with build ID=API20100525,NTS\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/gd.so' - /usr/lib/php5/20100525/gd.so: undefined symbol: ts_resource_ex in Unknown on line 0
PHP Warning:  PHP Startup: gmp: Unable to initialize module\nModule compiled with build ID=API20100525,TS\nPHP    compiled with build ID=API20100525,NTS\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/imap.so' - /usr/lib/php5/20100525/imap.so: undefined symbol: file_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/interbase.so' - /usr/lib/php5/20100525/interbase.so: undefined symbol: core_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/intl.so' - /usr/lib/php5/20100525/intl.so: undefined symbol: executor_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/ldap.so' - /usr/lib/php5/20100525/ldap.so: undefined symbol: executor_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/mssql.so' - /usr/lib/php5/20100525/mssql.so: undefined symbol: executor_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/odbc.so' - /usr/lib/php5/20100525/odbc.so: undefined symbol: core_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_dblib.so' - /usr/lib/php5/20100525/pdo_dblib.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_firebird.so' - /usr/lib/php5/20100525/pdo_firebird.so: undefined symbol: php_pdo_unregister_driver in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_mysql.so' - /usr/lib/php5/20100525/pdo_mysql.so: undefined symbol: pdo_parse_params in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_odbc.so' - /usr/lib/php5/20100525/pdo_odbc.so: undefined symbol: pdo_parse_params in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_pgsql.so' - /usr/lib/php5/20100525/pdo_pgsql.so: undefined symbol: pdo_parse_params in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/pdo_sqlite.so' - /usr/lib/php5/20100525/pdo_sqlite.so: undefined symbol: core_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: pspell: Unable to initialize module\nModule compiled with build ID=API20100525,TS\nPHP    compiled with build ID=API20100525,NTS\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: recode: Unable to initialize module\nModule compiled with build ID=API20100525,TS\nPHP    compiled with build ID=API20100525,NTS\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/snmp.so' - /usr/lib/php5/20100525/snmp.so: undefined symbol: executor_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/sqlite3.so' - /usr/lib/php5/20100525/sqlite3.so: undefined symbol: core_globals_id in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/tidy.so' - /usr/lib/php5/20100525/tidy.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/xmlrpc.so' - /usr/lib/php5/20100525/xmlrpc.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/xsl.so' - /usr/lib/php5/20100525/xsl.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed Feb 18 14:26:15 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.36-0+deb7u3 configured -- resuming normal operations
[Wed Feb 18 14:26:19 2015] [error] [client 5.10.162.170] Couldn't locate driver named mysql
Kia
fonte

Respostas:

0

Eu tentaria isso:

sudo rm /usr/lib/php5
sudo apt-get update
sudo apt-get install php5
sudo apt-get purge php5
sudo apt-get clean

Espero que funcione para voce.

rundekugel
fonte