title: How to add XDebug zend_extension to php.ini?
body: <p>I have a VPS with cPanel WHM and am trying to enable XDebug. I installed the extension by going to <code>WHM -&gt; Software -&gt; Module Installers -&gt; PHP Pecl -&gt; Manage</code> and I confirmed it's installed by checking my <code>phpinfo()</code> page.</p>
  
  <p>The next step is to enable XDebug in my php.ini file, but I'm a little confused how I should go about doing this.</p>
  
  <p>Looking at php.ini in <code>/usr/local/lib</code>, I see this line at the bottom:</p>
  
  <pre><code>zend_extension="/usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so"
  </code></pre>
  
  <p>However, in WHM -> Service Configuration -> PHP Configuration Editor, there's a "zend_extension" option with this value:</p>
  
  <pre><code>/usr/local/IonCube/ioncube_loader_lin_5.4.so, /usr/local/Zend/lib/Guard-6.0.0/php-5.4.x/ZendGuardLoader.so
  </code></pre>
  
  <p>So my question is, how should I go about adding the path to XDebug:</p>
  
  <pre><code>/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so
  </code></pre>
  
  <p>To php.ini? I see three ways of doing it and I don't know which is correct:</p>
  
  <ol>
  <li>I could add it to the comma separated list in WHM</li>
  <li>I could add it in php.ini directly, putting a comma between it and the existing value</li>
  <li>I could put it on a new line in php.ini</li>
  </ol>
  
  <p>Which way is correct?</p>