• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue XDebug for PHP 7.1.12 not working on web sites

manutiedra

New Pleskian
Hi,

I'm using Plesk Onyx
Version 17.5.3 Update #36.

I have downloaded the proper XDebug DLL for PHP 7.1.12 and placed it in "C:\Program Files (x86)\Plesk\Additional\PleskPHP71\ext\"

Then I added to "C:\Program Files (x86)\Plesk\Additional\PleskPHP71\php.ini" this line:

zend_extension = "C:\Program Files (x86)\Plesk\Additional\PleskPHP71\ext\php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll" to enable the module

If I execute php --version from the command line I got this:

PHP 7.1.12 (cli) (built: Nov 23 2017 04:20:40) ( NTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.12, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

and you can see it's working in the last line. However, if I go to PHP Settings for my site (in the control panel) and I click in "View the phpinfo() page", you don't see Xdebug anywhere, so the module is not loaded for the web site, but it should. Please help
 
Please, make sure that you have it enabled in Tools & Settings > PHP Settings > Settings for 7.1.12 FastCGI application
Also, make sure that you use this PHP version for your subscription.
 
Hello IgorG,

It was working in the command line because I changed php.ini:

[xdebug]
zend_extension = "C:\Program Files (x86)\Plesk\Additional\PleskPHP71\ext\php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll"

xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.profiler_enable = off

However, if I go to Tools & Settings > PHP Settings > Settings for 7.1.12 FastCGI application, the checkbox for xdebug-2.5.5-7.1-vc14-nts-x86_64 was not checked. If I check it, this line gets added to php.ini:

extension=php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll

With this new line, it doesn't work neither in the command line nor in the control panel (with the View the phpinfo()).

If I remove the zend_extension = "C:\Program Files (x86)\Plesk\Additional\PleskPHP71\ext\php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll" line it still doesn't work neither in the command line nor in the control panel.

I have checked and yes, my subdomain has PHP version 7.1.1.2, run PHP as FastCGI application
 
I hope that you use correct php binary for checking?
It should be something like

C:\Program Files (x86)\Plesk\Additional\PleskPHP71\bin\php --version
 
Yes, IgorG.

With this in the php.ini:

[xdebug]
zend_extension = "C:\Program Files (x86)\Plesk\Additional\PleskPHP71\ext\php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll"

xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.profiler_enable = off

C:\Program Files (x86)\Plesk\Additional\PleskPHP71>php --version
PHP 7.1.12 (cli) (built: Nov 23 2017 04:20:40) ( NTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.12, Copyright (c) 1999-2017, by Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans

With this in the php.ini:

[xdebug]
extension=php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll

xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.profiler_enable = off

C:\Program Files (x86)\Plesk\Additional\PleskPHP71>php --version
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP 7.1.12 (cli) (built: Nov 23 2017 04:20:40) ( NTS MSVC14 (Visual C++ 2015) x64 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.12, Copyright (c) 1999-2017, by Zend Technologies

See the warning: PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0

So the handling of this extension by Plesk is not correct.

Any way, either using extension or zend_extension, you got the same results in the control panel, with the View the phpinfo() option: no xdebug
 
Done:

C:\Program Files (x86)\Plesk\Additional\PleskPHP71>plesk bin php_handler.exe --reread
The information about PHP handlers was successfully updated.

with this in the php.ini:

[xdebug]
zend_extension = "C:\Program Files (x86)\Plesk\Additional\PleskPHP71\ext\php_xdebug-2.5.5-7.1-vc14-nts-x86_64.dll"

xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.profiler_enable = off

Same results.
 
I can only recommend creating a request to support team to do the in-depth investigation to find the reason and to fix it. Please create a ticket to support at Plesk Help Center
 
That's what I tried first but:

We identified that the Plesk license was purchased not directly from Plesk but through one of the Plesk Resellers.
In this case, you need to contact your license provider for support service.
Plesk Partners (Resellers) are fully trained by Plesk and deliver best-in-the-industry support for Plesk products running on their infrastructure.

Alternatively you can use our free support resources such as Knowledgebase, Documentation, Forum and @PleskHelp twitter or purchase monthly support subscription for your license key at our Plesk Online Store

Thank you for your help anyway IgorG!
 
Back
Top