title: Can't get MAMP to load xdebug (phpinfo())
body: <p>MAC OSX 10.7.5 -- MAMP 2.1.3 -- XDEBUG 2.2.3<br>
  I used the <a href="http://xdebug.org/wizard.php" rel="nofollow noreferrer">xdebug wizzard</a> to download and install using the terminal. After following the steps
  Rebooted MAMP but no xdebug in <code>phpinfo();</code><br>
  I thought it was weird that the wizzard says all you have to do it paste <code>zend_extension = /Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so</code> in the end of your php.ini file</p>
  
  <ul>
  <li>I did add quotes around the pathname - the pathname from the wizzard came without them</li>
  <li>Every other tutorial says there is more than just this one line that needs to be added </li>
  <li>MAMP seems to have its own 'zend_extension = "/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"' that just needs to becommented out. Anyway I tried both the pasting from the wizzard as well as uncommenting. </li>
  </ul>
  
  <p>Since I'm trying to use xdebug with my PHPstorm trial, I checked for the steps layed you at <a href="http://www.dotvoid.com/2012/09/using-xdebug-in-mamp/" rel="nofollow noreferrer">http://www.dotvoid.com/2012/09/using-xdebug-in-mamp/</a><br>
  Again it's weird: Here it says that all you need to do it add these 2 lines    </p>
  
  <pre><code>xdebug.remote_host=127.0.0.1  
  
  xdebug.remote_enable = 1
  </code></pre>
  
  <p>It's weird because other tutorials make you add more lines (back when I tried to get xdebug on an older version of MAMP to go with netbeans without success) about the localhost. 
  Here's what's in my php.ini file now: </p>
  
  <pre><code>[xdebug]
  zend_extension= "/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
  xdebug.default_enable=1
  xdebug.remote_enable=1
  xdebug.remote_handler=dbgp
  xdebug.remote_host=localhost
  xdebug.remote_port=9000
  xdebug.remote_autostart=1
  </code></pre>
  
  <p>I also checked if I'm configuring the right php.ini file, looking in phpinfo(); where it says which php.ini file is loaded. In this case <code>/Applications/MAMP/bin/php/php5.4.10/conf/php.ini</code> I verified if this is the correct php.ini file that I'm edititing and it is. </p>
  
  <p>The last anwser in this SO question <a href="https://stackoverflow.com/questions/4608824/how-to-get-xdebug-to-work-on-a-mac">here</a> speaks of two certain files that need to be the same binary maybe one file is 32bit binary and the other one is 64bit. When I tried to check this, the files mentioned in that question (<code>/path/to/mamp/Library/modules/php5.3/libphp5.so</code>)  are not in my current installation of MAMP. In my current installation, I can go to <code>Applications/MAMP/Library/modules</code>, but there is no folder in that <code>modules</code> folder, leave alone one that says <code>php</code> of any sort.</p>
  
  <p>In <a href="http://devnet.jetbrains.com/thread/436626?tstart=0" rel="nofollow noreferrer">this tutorial</a>, there is a mention of updating PEARL. This may not be relevant to my issue but I just followed it because I don't know really, I thought it wouldn't hurt. When I try to do that in my terminal the error message says </p>
  
  <p><code>Xdebug requires Zend Engine API version 220090626.
  The Zend Engine API version 220100525 which is installed, is newer.
  Contact Derick Rethans at http://xdebug.org/docs/faq#api for a later version of Xdebug.</code></p>
  
  <p>I found this issue in the xdebug FAQ. I quote </p>
  
  <blockquote>
    <p>it is most likely because you compiled Xdebug against PHP headers that belong to a different PHP version that you're running</p>
  </blockquote>
  
  <p>Further explanation confirms that the message about the zend api version points to the same issue and that two versions of PHP are colliding somehow.</p>
  
  <p>The solution to this is explained on the same FAQ page where it says</p>
  
  <blockquote>
    <p><strong>Q: How do I find which phpize to use?</strong> [...]If it doesn't match up, and perhaps the wrong "phpize" binary is found on the path, you can
    run configure as follows:<br>
    1. /full/path/to/php/bin/phpize<br>
    2. ./configure --with-php-config=/full/path/to/php/bin/php-config</p>
  </blockquote>
  
  <p>I don't know how to interpret this in practice. But here's what I have tried</p>
  
  <ul>
  <li>I was still in the <code>/usr/bin</code> and tried the first command <code>usr/bin/phize</code>. this returned <code>Cannot find config.m4. Make sure that you run '/usr/bin/phpize' in the top level source directory of the module</code>
  I don't know what they mean by the top level source directory of the module. Maybe 1. and 2. are 1 command? And the module means xdebug.so? </li>
  </ul>
  
  <p>No matter what I try though, I keep getting the <code>Cannot find config.m4</code> error whenever I just even try to run phpize. I tried running phpize from <code>/usr/bin/phpize</code> or from <code>/Applications/MAMP/bin/php/php5.4.10/bin/phpize</code>. Same error came</p>