<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://townx.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>townx - Installing Xdebug for PHP 5 on Ubuntu &amp;quot;Feisty Fawn&amp;quot; - Comments</title>
 <link>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn</link>
 <description>Comments for &quot;Installing Xdebug for PHP 5 on Ubuntu &quot;Feisty Fawn&quot;&quot;</description>
 <language>en</language>
<item>
 <title>Xdebug can debug drupal or</title>
 <link>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn#comment-38363</link>
 <description>&lt;p&gt;Xdebug can debug drupal or any php application.&lt;/p&gt;</description>
 <pubDate>Fri, 25 Jul 2008 03:36:12 -0500</pubDate>
 <dc:creator>ydl</dc:creator>
 <guid isPermaLink="false">comment 38363 at http://townx.org</guid>
</item>
<item>
 <title>If you have a look in the</title>
 <link>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn#comment-38304</link>
 <description>&lt;p&gt;If you have a look in the sample config. in the post, you should see an example path (&lt;code&gt;/usr/lib/php5/20060613+lfs/xdebug.so&lt;/code&gt;). I can&#039;t be definitive about where it&#039;s located, as the path to the extension (and in some cases, even the name of the file) depends on the version of Linux/PHP/Apache you&#039;re using. But it&#039;s likely to be called something like &lt;strong&gt;xdebug.so&lt;/strong&gt; and be located in your &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;installation&#039;s extensions directory (look for the &lt;strong&gt;extension_dir&lt;/strong&gt; setting in your php.ini file to work out what the latter is).&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 11:59:00 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">comment 38304 at http://townx.org</guid>
</item>
<item>
 <title>Question...</title>
 <link>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn#comment-38303</link>
 <description>&lt;p&gt;You wrote: &quot;Note you need to use zend_extension= to load the extension, and you should use the absolute path to the module (.so file) to do this. Otherwise it fails.&quot;&lt;/p&gt;

&lt;p&gt;So, what is the name of the extension? Where do I find it?&lt;/p&gt;</description>
 <pubDate>Fri, 04 Jul 2008 11:43:13 -0500</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 38303 at http://townx.org</guid>
</item>
<item>
 <title>Installing Xdebug for PHP 5 on Ubuntu &quot;Feisty Fawn&quot;</title>
 <link>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn</link>
 <description>&lt;p&gt;Xdebug is a &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;debugger with nice Eclipse integration. Here are some instructions for installing it (assuming you already have Apache 2 and &lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; 5).&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.inkompetent.se/wiki/php/remote_debugging_with_pdt_and_xdebug&quot;&gt;This article&lt;/a&gt; explains in more detail, but isn&#039;t Ubuntu-specific. It does detail Eclipse configuration for Xdebug in detail, though.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You need to be root to do the installation.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First off, install Xdebug. This isn&#039;t packaged for Ubuntu, so you need to do it with &lt;span class=&quot;caps&quot;&gt;PECL.&lt;/span&gt; So install &lt;span class=&quot;caps&quot;&gt;PECL &lt;/span&gt;if you don&#039;t have it:&lt;/p&gt;



&lt;pre&gt;
apt-get install pecl
&lt;/pre&gt;



&lt;p&gt;Use &lt;span class=&quot;caps&quot;&gt;PECL &lt;/span&gt;to install Xdebug:&lt;/p&gt;



&lt;pre&gt;
pecl install xdebug
&lt;/pre&gt;



&lt;p&gt;Configure &lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; 5 to use Xdebug by adding these lines to &lt;em&gt;/etc/php5/apache2/php.ini&lt;/em&gt; (somewhere near where the other &lt;code&gt;extension=&lt;/code&gt; lines are):&lt;/p&gt;



&lt;pre&gt;
zend_extension=/usr/lib/php5/20060613+lfs/xdebug.so

[xdebug]
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=127.0.0.1
xdebug.remote_log=/var/log/apache2/xdebug_remote.log
&lt;/pre&gt;



&lt;p&gt;Note you need to use &lt;code&gt;zend_extension=&lt;/code&gt; to load the extension, and you should use the absolute path to the module (.so file) to do this. Otherwise it fails.&lt;/p&gt;

&lt;p&gt;Check using &lt;span class=&quot;caps&quot;&gt;PHP &lt;/span&gt;info, e.g. add a file called phpinfo.php to your web root:&lt;/p&gt;



&lt;pre&gt;
&amp;lt;?php phpinfo(); ?&amp;gt;
&lt;/pre&gt;



&lt;p&gt;Then call it in your browser. Check that there is an Xdebug section displayed.&lt;/p&gt;

&lt;p&gt;That&#039;s Xdebug installed. See the article linked at the start of this entry if you want to integrate with Eclipse.&lt;/p&gt;</description>
 <comments>http://townx.org/blog/elliot/installing-xdebug-php-5-ubuntu-feisty-fawn#comments</comments>
 <category domain="http://townx.org/tech">tech</category>
 <category domain="http://townx.org/howtos">howtos</category>
 <pubDate>Thu, 19 Jun 2008 03:56:20 -0500</pubDate>
 <dc:creator>elliot</dc:creator>
 <guid isPermaLink="false">723 at http://townx.org</guid>
</item>
</channel>
</rss>
