• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Can't use XDebug in newest plesk?

nelteren

Basic Pleskian
Server operating system version
Debian 13.5
Plesk version and microupdate number
18.0.78.4
I'm trying to profile a site to track a memory leak. It's only profiling php-cli. I can't get it to run.
I'm using the 'Additional directives' box. I've got plesk-php84-xdebug installed (/opt/plesk/php/8.4/lib/php/modules/xdebug.so exists). I know it can work, because it works for background tasks.

PHP is set to be served as 'FPM application served by nginx', using plesk's repository's php-8.4 version.

If I remove the ' start_with_request' thing and refresh the page a bunch, I do get a bunch of profiles... but those are from background tasks. It never profiles the html page.
If I uncomment the start_with_request lines (and add ?XDEBUG_TRIGGER=profileMe to the GET params), then I don't get any profiles at all (because I'm filtering those background tasks out to get past the noise).

How do I get it to load the extension not just when running some background thing (wp_cli) but also when a I send a request from my browser with the correct GET/POST/COOKIE to enable profiling?

The below doesn't work.

Code:
zend_extension=/opt/plesk/php/8.4/lib/php/modules/xdebug.so
xdebug.output_dir=/var/www/vhosts/system/mysite.com/profiles
xdebug.mode=profile
xdebug.start_with_request=trigger
xdebug.trigger_value=profileMe
 
I tried other directories as well, making (and chown'ing) a directory named /var/www/vhosts/mysite.com/profiles also does not work with profiling via browser request.
 
Back
Top