• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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