Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XDebug not loading on Windows 7 64 bit PHP 5.4

Tags:

I have php running on apache. I have downloaded what I think to be the correct xdebug compiled dll for php version 5.4 64 bit windows. I have thread saftey enabled and it is using VC9. I have downloaded the dll and placed it here:

C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll 

Here is what I have in my php.ini:

[xdebug] zend_extension = "C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll" 

When I start Apache, I get this error:

[Wed Apr 04 17:01:56 2012] [notice] Parent: Received restart signal -- Restarting the server. Failed loading C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll hild process is ending. [Wed Apr 04 17:01:56 2012] [notice] Apache/2.2.22 (Win32) PHP/5.4.0 configured -- resuming normal operations [Wed Apr 04 17:01:56 2012] [notice] Server built: Jan 28 2012 11:16:39 [Wed Apr 04 17:01:56 2012] [notice] Parent: Created child process 2120 [Wed Apr 04 17:01:57 2012] [notice] Child 2120: Child process is running [Wed Apr 04 17:01:57 2012] [notice] Child 2120: Acquired the start mutex. [Wed Apr 04 17:01:57 2012] [notice] Child 2120: Starting 64 worker threads. [Wed Apr 04 17:01:57 2012] [notice] Child 5624: Released the start mutex [Wed Apr 04 17:01:58 2012] [notice] Child 5624: All worker threads have exited. [Wed Apr 04 17:01:58 2012] [notice] Child 5624: Child process is exiting Failed loading C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll 
like image 725
Jon Hargett Avatar asked Apr 04 '12 22:04

Jon Hargett


People also ask

Does xdebug work with PHP 8?

PHP Version Support # In general, at any point when an Xdebug version is released, it will support the currently supported PHP versions. On Windows you need at least PHP 7.4. 20 or PHP 8.0.


2 Answers

In order to make sure that you've downloaded the correct binary, you can use the wizard at http://xdebug.org/wizard.php It will tell you exactly which file to download and in which php.ini file you should put the zend_extension line (you're using the correct one now of course, as you get the "Failed to load" error).

like image 53
Derick Avatar answered Sep 19 '22 01:09

Derick


OK, it is working now and I think I know what was wrong. I was using the 64 bit version of PHP but the 32 bit version of Apache and the 64 bit version of xdebug. I started over and used Apache 2.4 32 bit, since there doesn't seem to be a 64 bit version with the php5 module. So, I made sure I have the 32 bit version of everything. I am using php5.4 with VC9, Thread Safe.

This blog post helped in setting it up: http://lifeofageekadmin.com/how-install-apache-2-4-php-5-4-and-mysql-5-5-21-on-windows-7/

like image 32
Jon Hargett Avatar answered Sep 19 '22 01:09

Jon Hargett