title: The Xdebug extension is not loaded. No code coverage will be generated on Ubuntu with Xampp
body: <p>I have a problem to install xdebug on my Ubuntu Server which is using xampp. I know in Stack Overflow there are several questions about this kind of problem but I did not find any solution. </p>
  
  <p>First this is the output of <code>php --version</code> command:</p>
  
  <pre><code>PHP 5.3.8 (cli) (built: Sep 19 2011 13:29:27)  
  Copyright (c) 1997-2011 The PHP Group  
  Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies  
      with Xdebug v2.2.0, Copyright (c) 2002-2012, by Derick Rethans  
  </code></pre>
  
  <p>Output of <code>php --ini</code> command:  </p>
  
  <pre><code>Configuration File (php.ini) Path: /opt/lampp/etc  
  Loaded Configuration File:         /opt/lampp/etc/php.ini  
  Scan for additional .ini files in: (none)  
  Additional .ini files parsed:      (none)  
  </code></pre>
  
  <p>Output of <code>php -m</code> command:  </p>
  
  <pre><code>[PHP Modules]  
  bcmath  
  bz2  
  calendar  
  Core  
  ctype  
  curl  
  date  
  dba  
  dom  
  ereg  
  exif  
  fileinfo  
  filter  
  ftp  
  gd  
  gettext  
  hash  
  iconv  
  imap  
  intl  
  json  
  ldap  
  libxml  
  mbstring  
  mcrypt  
  memcache  
  mhash  
  ming  
  mssql  
  mysql  
  mysqli
  mysqlnd  
  ncurses  
  openssl  
  pcntl  
  pcre  
  PDO  
  pdo_mysql  
  pdo_pgsql  
  pdo_sqlite  
  pgsql  
  Phar  
  posix  
  radius  
  Reflection  
  session  
  shmop  
  SimpleXML  
  soap  
  sockets  
  SPL  
  SQLite  
  sqlite3  
  standard  
  sybase_ct  
  sysvsem  
  sysvshm  
  tokenizer  
  wddx  
  xdebug  
  xml  
  xmlreader  
  xmlwriter  
  xsl  
  zip  
  zlib  
  
  [Zend Modules]  
  xdebug  
  </code></pre>
  
  <p>When I paste the output of <code>phpinfo()</code> in <code>http://xdebug.org/wizard.php</code>, the site shows the following:  </p>
  
  <h2>Tailored Installation Instructions</h2>
  
  <h2>Summary</h2>
  
  <p><li><b>Xdebug installed:</b> 2.2.0</li>
  <li><b>Server API:</b> Command Line Interface</li>
  <li><b>Windows:</b> no</li>
  <li><b>Zend Server:</b> no</li>
  <li><b>PHP Version:</b> 5.3.8</li>
  <li><b>Zend API nr:</b> 220090626</li>
  <li><b>PHP API nr:</b> 20090626</li>
  <li><b>Debug Build:</b> no</li>
  <li><b>Thread Safe Build:</b> no</li>
  <li><b>Configuration File Path:</b> /opt/lampp/etc</li>
  <li><b>Configuration File:</b> /opt/lampp/etc/php.ini</li>
  <li><b>Extensions directory:</b> /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626</li></p>
  
  <h2>You're already running the latest Xdebug version</h2>
  
  <p>But here are the instructions anyway:</p>
  
  <p>... ... ... (lines truncated) ... ... ...  </p>
  
  <p>I write this on my <code>/opt/lampp/etc/php.ini</code> at the bottom:  </p>
  
  <pre><code>[xdebug]  
  zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so  
  xdebug.profiler_output_dir = "/tmp/xdebug"  
  xdebug.profiler_enable = On  
  xdebug.remote_enable = On  
  xdebug.remote_host = "localhost"  
  xdebug.remote_port = 10000  
  xdebug.remote_handler = "dbgp"  
  </code></pre>
  
  <p>Output of <code>phpunit --version</code> is as follows:   </p>
  
  <pre><code> PHPUnit 3.6.11 by Sebastian Bergmann.  
  </code></pre>
  
  <p>Now my actual problem arises:  </p>
  
  <p>When I use the following command it shows that xdebug is not installed:  </p>
  
  <pre><code>phpunit --coverage-html ~/build/logs/coverage  
  </code></pre>
  
  <p>This command's output is as follows:  </p>
  
  <pre><code>The Xdebug extension is not loaded. No code coverage will be generated.  
  </code></pre>