<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Install_Xdebug_with_php-fpm_per_pool</id>
		<title>Install Xdebug with php-fpm per pool - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Install_Xdebug_with_php-fpm_per_pool"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Install_Xdebug_with_php-fpm_per_pool&amp;action=history"/>
		<updated>2026-06-04T06:18:43Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Install_Xdebug_with_php-fpm_per_pool&amp;diff=899&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;===Install Xdebug with php-fpm per pool===  Ever need to install xdebug to create cachegrind files for only specific php-fpm pool  ==Install Xdebug==  Fastest way to install x...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Install_Xdebug_with_php-fpm_per_pool&amp;diff=899&amp;oldid=prev"/>
				<updated>2017-03-30T21:56:28Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Install Xdebug with php-fpm per pool===  Ever need to install xdebug to create cachegrind files for only specific php-fpm pool  ==Install Xdebug==  Fastest way to install x...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Install Xdebug with php-fpm per pool===&lt;br /&gt;
&lt;br /&gt;
Ever need to install xdebug to create cachegrind files for only specific php-fpm pool&lt;br /&gt;
&lt;br /&gt;
==Install Xdebug==&lt;br /&gt;
&lt;br /&gt;
Fastest way to install xdebug&lt;br /&gt;
&lt;br /&gt;
 pecl install xdebug&lt;br /&gt;
&lt;br /&gt;
Or if you're using SCL with multiple version&lt;br /&gt;
&lt;br /&gt;
 scl enable &amp;lt;phpverson&amp;gt; 'pecl install xdebug'&lt;br /&gt;
&lt;br /&gt;
==Configure xdebug.ini==&lt;br /&gt;
&lt;br /&gt;
We only want specific php-fpm pools to create cachegrind files&lt;br /&gt;
&lt;br /&gt;
 zend_extension=&amp;quot;/usr/lib64/php/modules/xdebug.so&amp;quot;&lt;br /&gt;
 xdebug.profiler_enable = 0&lt;br /&gt;
 xdebug.profiler_output_name = &amp;quot;cachegrind.out.%H.%p&amp;quot;&lt;br /&gt;
 xdebug.profiler_enable_trigger = 0&lt;br /&gt;
&lt;br /&gt;
You might have to change the zend_extension location to match your location&lt;br /&gt;
&lt;br /&gt;
==Configure php-fpm pool ==&lt;br /&gt;
&lt;br /&gt;
Add the following to your php-fpm pool config:&lt;br /&gt;
&lt;br /&gt;
 php_admin_flag[xdebug.profiler_enable_trigger] = On&lt;br /&gt;
 php_admin_value[xdebug.profiler_output_dir] = /home/&amp;lt;user&amp;gt;/xdebug&lt;br /&gt;
 php_admin_flag[xdebug.remote_enable] = On;&lt;br /&gt;
&lt;br /&gt;
Again you can change the output location by changing the  php_admin_value[xdebug.profiler_output_dir]  &lt;br /&gt;
&lt;br /&gt;
Then make the output directory:&lt;br /&gt;
&lt;br /&gt;
 mkdir /home/&amp;lt;user&amp;gt;/xdebug&lt;br /&gt;
&lt;br /&gt;
==Create cachegrind files==&lt;br /&gt;
&lt;br /&gt;
Then use the following flag to create the cachegrind file&lt;br /&gt;
&lt;br /&gt;
http: / /&amp;lt;domain&amp;gt;/?XDEBUG_PROFILE=1 or any page with ?XDEBUG_PROFILE=1&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>