无法从 php 5.6 中删除甚至禁用 xdebug-2.5.5
Cannot remove or even disable xdebug-2.5.5 from php 5.6
似乎在任何情况下我都无法从 php 中删除甚至禁用 xdebug,我做错了什么?
xdebug 甚至没有出现在 phpinfo() 或 print_r(get_loaded_extensions());
中
Array ( [0] => Core [1] => date [2] => ereg [3] => libxml [4] => openssl [5] => pcre [6] => zlib [7] => filter [8] => hash [9] => pcntl [10] => readline [11] => Reflection [12] => SPL [13] => session [14] => standard [15] => cgi-fcgi [16] => bcmath [17] => calendar [18] => ctype [19] => curl [20] => dom [21] => ftp [22] => gd [23] => imap [24] => json [25] => mcrypt [26] => mysqlnd [27] => mysql [28] => mysqli [29] => PDO [30] => pdo_mysql [31] => pdo_sqlite [32] => Phar [33] => posix [34] => SimpleXML [35] => sockets [36] => sqlite3 [37] => tokenizer [38] => xml [39] => wddx [40] => xmlreader [41] => xmlwriter [42] => xsl [43] => mhash )
正在尝试
if(function_exists('xdebug_disable')) { xdebug_disable(); }
也什么都不做
php --ini 输出:
Configuration File (php.ini) Path: /opt/cpanel/ea-php56/root/etc
Loaded Configuration File: /opt/cpanel/ea-php56/root/etc/php.ini
Scan for additional .ini files in: /opt/cpanel/ea-php56/root/etc/php.d
Additional .ini files parsed: /opt/cpanel/ea-php56/root/etc/php.d/02-pecl.ini,
/opt/cpanel/ea-php56/root/etc/php.d/bcmath.ini,
/opt/cpanel/ea-php56/root/etc/php.d/calendar.ini,
/opt/cpanel/ea-php56/root/etc/php.d/ctype.ini,
/opt/cpanel/ea-php56/root/etc/php.d/curl.ini,
/opt/cpanel/ea-php56/root/etc/php.d/dom.ini,
/opt/cpanel/ea-php56/root/etc/php.d/ftp.ini,
/opt/cpanel/ea-php56/root/etc/php.d/gd.ini,
/opt/cpanel/ea-php56/root/etc/php.d/imap.ini,
/opt/cpanel/ea-php56/root/etc/php.d/json.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mcrypt.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mysqlnd.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysql.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysqli.ini,
/opt/cpanel/ea-php56/root/etc/php.d/pdo.ini,
/opt/cpanel/ea-php56/root/etc/php.d/pdo_mysqlnd.ini,
/opt/cpanel/ea-php56/root/etc/php.d/pdo_sqlite.ini,
/opt/cpanel/ea-php56/root/etc/php.d/phar.ini,
/opt/cpanel/ea-php56/root/etc/php.d/posix.ini,
/opt/cpanel/ea-php56/root/etc/php.d/simplexml.ini,
/opt/cpanel/ea-php56/root/etc/php.d/sockets.ini,
/opt/cpanel/ea-php56/root/etc/php.d/sqlite3.ini,
/opt/cpanel/ea-php56/root/etc/php.d/tokenizer.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xml.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xml_wddx.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xmlreader.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xmlwriter.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xsl.ini
此外,在这些目录中搜索文本不会产生任何结果,xdebug 不在 php 表示它从以下位置加载的任何 ini 文件中:
find /opt/cpanel/ea-php56/root/etc/php.d/ -type f -exec grep -H 'xdebug' {} \;
这是 phpinfo():
的配置命令输出
'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php56/root/usr' '--exec-prefix=/opt/cpanel/ea-php56/root/usr' '--bindir=/opt/cpanel/ea-php56/root/usr/bin' '--sbindir=/opt/cpanel/ea-php56/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php56/root/etc' '--datadir=/opt/cpanel/ea-php56/root/usr/share' '--includedir=/opt/cpanel/ea-php56/root/usr/include' '--libdir=/opt/cpanel/ea-php56/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php56/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php56/root/usr/var' '--sharedstatedir=/opt/cpanel/ea-php56/root/usr/com' '--mandir=/opt/cpanel/ea-php56/root/usr/share/man' '--infodir=/opt/cpanel/ea-php56/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php56/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php56/root/etc/php.d' '--disable-debug' '--with-pic' '--enable-rpath=/opt/cpanel/ea-php56/root/usr/lib64' '--without-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-vpx-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl=/opt/cpanel/ea-openssl' '--with-openssl-dir=/opt/cpanel/ea-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--libdir=/opt/cpanel/ea-php56/root/usr/lib64/php' '--enable-pcntl' '--enable-opcache' '--with-imap=shared,/opt/cpanel/ea-php56/root/usr' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-t1lib=/usr' '--with-gd=shared' '--with-gmp=shared' '--enable-calendar=shared' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-ctype=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-tcadb=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-tokenizer=shared' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with-pgsql=shared' '--enable-simplexml=shared' '--enable-xml=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/opt/cpanel/libcurl' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/opt/cpanel/libmcrypt' '--with-tidy=shared,/opt/cpanel/libtidy' '--with-mssql=shared,/opt/cpanel/freetds' '--with-pdo-dblib=shared,/opt/cpanel/freetds' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-shmop=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr' '--enable-fileinfo=shared' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 '-g' '-pipe' '-Wall' '-Wp,-D_FORTIFY_SOURCE=2' '-fexceptions' '-fstack-protector-strong' '--param=ssp-buffer-size=4' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-m64' '-mtune=generic' '-fno-strict-aliasing' '-Wno-pointer-sign'' 'LDFLAGS=-Wl,-z,relro '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld'' 'CXXFLAGS=-O2 '-g' '-pipe' '-Wall' '-Wp,-D_FORTIFY_SOURCE=2' '-fexceptions' '-fstack-protector-strong' '--param=ssp-buffer-size=4' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-m64' '-mtune=generic''
不管怎样,我仍然尝试将其插入主 /opt/cpanel/ea-php56/root/etc/php.ini
xdebug.remote_autostart=0
xdebug.remote_enable=0
xdebug.profiler_enable=0
正在寻找一个
zend_extension = "/path/to/xdebug.so"
指令不产生任何结果
我尝试在 /opt/cpanel/ 的根目录下进行搜索,但似乎仍然找不到任何相关内容,我在此处包含了 pastebin 上的输出:https://pastebin.com/4Ej1mdiR
find /opt/cpanel/ -type f -exec grep -H 'xdebug' {} \;
所以我回到 phpinfo() 输出到 extension_dir,本地值和主值都是:
ls /opt/cpanel/ea-php56/root/usr/lib64/php/modules
bcmath.so curl.so gd.so mcrypt.so mysqlnd.so pdo_sqlite.so scrypt.so sqlite3.so xmlreader.so xsl.so
calendar.so dom.so imap.so mysqlnd_mysqli.so pdo_mysqlnd.so phar.so simplexml.so tokenizer.so xml.so
ctype.so ftp.so json.so mysqlnd_mysql.so pdo.so posix.so sockets.so wddx.so xmlwriter.so
即使我尝试了很好的措施
apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (shared)
cgi_module (shared)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
expires_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
mime_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
proxy_http_module (shared)
proxy_wstunnel_module (shared)
rewrite_module (shared)
setenvif_module (shared)
slotmem_shm_module (shared)
socache_dbm_module (shared)
socache_shmcb_module (shared)
status_module (shared)
unique_id_module (shared)
unixd_module (shared)
userdir_module (shared)
ssl_module (shared)
bwlimited_module (shared)
security2_module (shared)
ruid2_module (shared)
仍然没有 xdebug 模块
我试过了
service httpd restart
我已经进入 WHM 并重新启动了 PHP-Apache 的 FPM 服务,而 multiPHP ini 编辑器没有任何相关内容
我仍然无能为力,xdebug 似乎不存在并且仍在记录堆栈跟踪,导致敏感信息的内存泄漏!
如果有帮助的话,我使用 phpize 和 pecl 从源代码安装了 xdebug-2.5.5。
我尝试过的其他事情是进入 cPanel 的 WHM 并使用 Easy Apache 4 降级到 Apache Only 没有 PHP 然后重新安装 PHP,但仍然没有任何效果,仍然堆栈痕迹。
我现在完全不知所措,连续工作了 4 天,我认为这对我来说没有意义。
机器规格,我正在使用
uname -a
Linux myhost.com 3.10.0-514.10.2.el7.centos.plus.x86_64 #1 SMP Fri Mar 3 02:04:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
尝试从实际的官方 xdebug 网站开始遵循许多 uninstallation/removal 在线指南,但没有任何效果
非常感谢任何关于如何从我的系统中完全删除 xdebug 的建议!
编辑:仔细查看 /opt/cpanel 目录字符串搜索,我发现 xdebug 内置于 php-fpm 二进制文件 /opt/cpanel/ea-php56/root/usr/sbin/php-fpm.也许我需要重建 PHP-FPM,但我不确定如何在 cPanel
中进行
您的最后一次编辑说:
looking a little more closely at the /opt/cpanel directory string search I see that xdebug is built into the php-fpm binary at /opt/cpanel/ea-php56/root/usr/sbin/php-fpm.
我认为这是症结所在。如果它是内置的,那么你当然不能删除它。
但你也说:
xdebug isn't even showing up in phpinfo() or print_r(get_loaded_extensions());
这没有意义,因为 Xdebug 在加载时肯定会显示在其中。
所以我不明白 Xdebug 是怎么回事。
不过,你也说:
I still cannot do anything, xdebug appears to be inexistent and is still logging stack traces causing memory leaks of sensitive information!
- 这些到底是什么堆栈跟踪?
- 他们在哪里登录?
这些是例外情况吗?因为如果是这种情况,它们也可能只是正常的 PHP 堆栈跟踪(发布一个 header 可以很容易地确定)。而这些与Xdebug关系不大,可以通过php.ini中的display_errors=0
;并在系统日志文件中使用 log_errors=0
和 error_log=
(空字符串)。
似乎在任何情况下我都无法从 php 中删除甚至禁用 xdebug,我做错了什么?
xdebug 甚至没有出现在 phpinfo() 或 print_r(get_loaded_extensions());
中Array ( [0] => Core [1] => date [2] => ereg [3] => libxml [4] => openssl [5] => pcre [6] => zlib [7] => filter [8] => hash [9] => pcntl [10] => readline [11] => Reflection [12] => SPL [13] => session [14] => standard [15] => cgi-fcgi [16] => bcmath [17] => calendar [18] => ctype [19] => curl [20] => dom [21] => ftp [22] => gd [23] => imap [24] => json [25] => mcrypt [26] => mysqlnd [27] => mysql [28] => mysqli [29] => PDO [30] => pdo_mysql [31] => pdo_sqlite [32] => Phar [33] => posix [34] => SimpleXML [35] => sockets [36] => sqlite3 [37] => tokenizer [38] => xml [39] => wddx [40] => xmlreader [41] => xmlwriter [42] => xsl [43] => mhash )
正在尝试
if(function_exists('xdebug_disable')) { xdebug_disable(); }
也什么都不做
php --ini 输出:
Configuration File (php.ini) Path: /opt/cpanel/ea-php56/root/etc
Loaded Configuration File: /opt/cpanel/ea-php56/root/etc/php.ini
Scan for additional .ini files in: /opt/cpanel/ea-php56/root/etc/php.d
Additional .ini files parsed: /opt/cpanel/ea-php56/root/etc/php.d/02-pecl.ini,
/opt/cpanel/ea-php56/root/etc/php.d/bcmath.ini,
/opt/cpanel/ea-php56/root/etc/php.d/calendar.ini,
/opt/cpanel/ea-php56/root/etc/php.d/ctype.ini,
/opt/cpanel/ea-php56/root/etc/php.d/curl.ini,
/opt/cpanel/ea-php56/root/etc/php.d/dom.ini,
/opt/cpanel/ea-php56/root/etc/php.d/ftp.ini,
/opt/cpanel/ea-php56/root/etc/php.d/gd.ini,
/opt/cpanel/ea-php56/root/etc/php.d/imap.ini,
/opt/cpanel/ea-php56/root/etc/php.d/json.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mcrypt.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mysqlnd.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysql.ini,
/opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysqli.ini,
/opt/cpanel/ea-php56/root/etc/php.d/pdo.ini,
/opt/cpanel/ea-php56/root/etc/php.d/pdo_mysqlnd.ini,
/opt/cpanel/ea-php56/root/etc/php.d/pdo_sqlite.ini,
/opt/cpanel/ea-php56/root/etc/php.d/phar.ini,
/opt/cpanel/ea-php56/root/etc/php.d/posix.ini,
/opt/cpanel/ea-php56/root/etc/php.d/simplexml.ini,
/opt/cpanel/ea-php56/root/etc/php.d/sockets.ini,
/opt/cpanel/ea-php56/root/etc/php.d/sqlite3.ini,
/opt/cpanel/ea-php56/root/etc/php.d/tokenizer.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xml.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xml_wddx.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xmlreader.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xmlwriter.ini,
/opt/cpanel/ea-php56/root/etc/php.d/xsl.ini
此外,在这些目录中搜索文本不会产生任何结果,xdebug 不在 php 表示它从以下位置加载的任何 ini 文件中:
find /opt/cpanel/ea-php56/root/etc/php.d/ -type f -exec grep -H 'xdebug' {} \;
这是 phpinfo():
的配置命令输出'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/opt/cpanel/ea-php56/root/usr' '--exec-prefix=/opt/cpanel/ea-php56/root/usr' '--bindir=/opt/cpanel/ea-php56/root/usr/bin' '--sbindir=/opt/cpanel/ea-php56/root/usr/sbin' '--sysconfdir=/opt/cpanel/ea-php56/root/etc' '--datadir=/opt/cpanel/ea-php56/root/usr/share' '--includedir=/opt/cpanel/ea-php56/root/usr/include' '--libdir=/opt/cpanel/ea-php56/root/usr/lib64' '--libexecdir=/opt/cpanel/ea-php56/root/usr/libexec' '--localstatedir=/opt/cpanel/ea-php56/root/usr/var' '--sharedstatedir=/opt/cpanel/ea-php56/root/usr/com' '--mandir=/opt/cpanel/ea-php56/root/usr/share/man' '--infodir=/opt/cpanel/ea-php56/root/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/opt/cpanel/ea-php56/root/etc' '--with-config-file-scan-dir=/opt/cpanel/ea-php56/root/etc/php.d' '--disable-debug' '--with-pic' '--enable-rpath=/opt/cpanel/ea-php56/root/usr/lib64' '--without-pear' '--with-bz2' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-vpx-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl=/opt/cpanel/ea-openssl' '--with-openssl-dir=/opt/cpanel/ea-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-sockets' '--with-kerberos' '--enable-shmop' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--libdir=/opt/cpanel/ea-php56/root/usr/lib64/php' '--enable-pcntl' '--enable-opcache' '--with-imap=shared,/opt/cpanel/ea-php56/root/usr' '--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbregex' '--with-t1lib=/usr' '--with-gd=shared' '--with-gmp=shared' '--enable-calendar=shared' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-ctype=shared' '--enable-dba=shared' '--with-db4=/usr' '--with-tcadb=/usr' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-iconv=shared' '--enable-sockets=shared' '--enable-tokenizer=shared' '--with-xmlrpc=shared' '--with-ldap=shared' '--with-ldap-sasl' '--enable-mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-dom=shared' '--with-pgsql=shared' '--enable-simplexml=shared' '--enable-xml=shared' '--enable-wddx=shared' '--with-snmp=shared,/usr' '--enable-soap=shared' '--with-xsl=shared,/usr' '--enable-xmlreader=shared' '--enable-xmlwriter=shared' '--with-curl=shared,/opt/cpanel/libcurl' '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-mysql=shared,mysqlnd' '--with-pdo-pgsql=shared,/usr' '--with-pdo-sqlite=shared,/usr' '--with-sqlite3=shared,/usr' '--enable-json=shared' '--enable-zip=shared' '--without-readline' '--with-libedit' '--with-pspell=shared' '--enable-phar=shared' '--with-mcrypt=shared,/opt/cpanel/libmcrypt' '--with-tidy=shared,/opt/cpanel/libtidy' '--with-mssql=shared,/opt/cpanel/freetds' '--with-pdo-dblib=shared,/opt/cpanel/freetds' '--enable-sysvmsg=shared' '--enable-sysvshm=shared' '--enable-sysvsem=shared' '--enable-shmop=shared' '--enable-posix=shared' '--with-unixODBC=shared,/usr' '--enable-intl=shared' '--with-icu-dir=/usr' '--with-enchant=shared,/usr' '--with-recode=shared,/usr' '--enable-fileinfo=shared' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 '-g' '-pipe' '-Wall' '-Wp,-D_FORTIFY_SOURCE=2' '-fexceptions' '-fstack-protector-strong' '--param=ssp-buffer-size=4' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-m64' '-mtune=generic' '-fno-strict-aliasing' '-Wno-pointer-sign'' 'LDFLAGS=-Wl,-z,relro '-specs=/usr/lib/rpm/redhat/redhat-hardened-ld'' 'CXXFLAGS=-O2 '-g' '-pipe' '-Wall' '-Wp,-D_FORTIFY_SOURCE=2' '-fexceptions' '-fstack-protector-strong' '--param=ssp-buffer-size=4' '-grecord-gcc-switches' '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' '-m64' '-mtune=generic''
不管怎样,我仍然尝试将其插入主 /opt/cpanel/ea-php56/root/etc/php.ini
xdebug.remote_autostart=0
xdebug.remote_enable=0
xdebug.profiler_enable=0
正在寻找一个
zend_extension = "/path/to/xdebug.so"
指令不产生任何结果
我尝试在 /opt/cpanel/ 的根目录下进行搜索,但似乎仍然找不到任何相关内容,我在此处包含了 pastebin 上的输出:https://pastebin.com/4Ej1mdiR
find /opt/cpanel/ -type f -exec grep -H 'xdebug' {} \;
所以我回到 phpinfo() 输出到 extension_dir,本地值和主值都是:
ls /opt/cpanel/ea-php56/root/usr/lib64/php/modules
bcmath.so curl.so gd.so mcrypt.so mysqlnd.so pdo_sqlite.so scrypt.so sqlite3.so xmlreader.so xsl.so
calendar.so dom.so imap.so mysqlnd_mysqli.so pdo_mysqlnd.so phar.so simplexml.so tokenizer.so xml.so
ctype.so ftp.so json.so mysqlnd_mysql.so pdo.so posix.so sockets.so wddx.so xmlwriter.so
即使我尝试了很好的措施
apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_prefork_module (shared)
cgi_module (shared)
access_compat_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
expires_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
mime_module (shared)
negotiation_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
proxy_http_module (shared)
proxy_wstunnel_module (shared)
rewrite_module (shared)
setenvif_module (shared)
slotmem_shm_module (shared)
socache_dbm_module (shared)
socache_shmcb_module (shared)
status_module (shared)
unique_id_module (shared)
unixd_module (shared)
userdir_module (shared)
ssl_module (shared)
bwlimited_module (shared)
security2_module (shared)
ruid2_module (shared)
仍然没有 xdebug 模块
我试过了
service httpd restart
我已经进入 WHM 并重新启动了 PHP-Apache 的 FPM 服务,而 multiPHP ini 编辑器没有任何相关内容
我仍然无能为力,xdebug 似乎不存在并且仍在记录堆栈跟踪,导致敏感信息的内存泄漏!
如果有帮助的话,我使用 phpize 和 pecl 从源代码安装了 xdebug-2.5.5。
我尝试过的其他事情是进入 cPanel 的 WHM 并使用 Easy Apache 4 降级到 Apache Only 没有 PHP 然后重新安装 PHP,但仍然没有任何效果,仍然堆栈痕迹。 我现在完全不知所措,连续工作了 4 天,我认为这对我来说没有意义。 机器规格,我正在使用
uname -a
Linux myhost.com 3.10.0-514.10.2.el7.centos.plus.x86_64 #1 SMP Fri Mar 3 02:04:03 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
尝试从实际的官方 xdebug 网站开始遵循许多 uninstallation/removal 在线指南,但没有任何效果
非常感谢任何关于如何从我的系统中完全删除 xdebug 的建议!
编辑:仔细查看 /opt/cpanel 目录字符串搜索,我发现 xdebug 内置于 php-fpm 二进制文件 /opt/cpanel/ea-php56/root/usr/sbin/php-fpm.也许我需要重建 PHP-FPM,但我不确定如何在 cPanel
中进行您的最后一次编辑说:
looking a little more closely at the /opt/cpanel directory string search I see that xdebug is built into the php-fpm binary at /opt/cpanel/ea-php56/root/usr/sbin/php-fpm.
我认为这是症结所在。如果它是内置的,那么你当然不能删除它。
但你也说:
xdebug isn't even showing up in phpinfo() or print_r(get_loaded_extensions());
这没有意义,因为 Xdebug 在加载时肯定会显示在其中。
所以我不明白 Xdebug 是怎么回事。
不过,你也说:
I still cannot do anything, xdebug appears to be inexistent and is still logging stack traces causing memory leaks of sensitive information!
- 这些到底是什么堆栈跟踪?
- 他们在哪里登录?
这些是例外情况吗?因为如果是这种情况,它们也可能只是正常的 PHP 堆栈跟踪(发布一个 header 可以很容易地确定)。而这些与Xdebug关系不大,可以通过php.ini中的display_errors=0
;并在系统日志文件中使用 log_errors=0
和 error_log=
(空字符串)。