View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001418||Xdebug||Installation||public||2017-04-16 13:45||2017-04-17 17:26|
|Status||resolved||Resolution||no change required|
|Platform||EC2 x64||OS||AMI Linux||OS Version|
|Target Version||Fixed in Version|
|Summary||0001418: Unable to get Xdebug working|
|Description||I followed all the steps that are suggested here (https://xdebug.org/wizard.php).|
1. Download xdebug-2.5.1.tgz
2. Unpack the downloaded file with tar -xvzf xdebug-2.5.1.tgz
3. Run: cd xdebug-2.5.1
4. Run: phpize
5. Run: ./configure
6. Run: make
7. Run: cp modules/xdebug.so /usr/lib64/php-zts/7.0/modules
8. Edit /etc/php.ini and add the line
zend_extension = /usr/lib64/php-zts/7.0/modules/xdebug.so
9. Restart the webserver
I'm getting error in Apache logs.
Failed loading /usr/lib64/php/7.0/modules/xdebug.so: /usr/lib64/php-zts/7.0/modules/xdebug.so: undefined symbol: compiler_globals
|Additional Information||I checked phpize - it is correct one.|
Apache configured for mpm-event.
|Tags||No tags attached.|
|Operating System||AMI Linux|
I have switched Apache to prefork mode and everything works fine.
But I want to set Apache to mpm-event. Is Xdebug compatible with this mode?
If yes then it seems that the problem is in XDebug compilation.
How can I force phpize to pick correct headers?
There is only one phpize on my server for sure, so there is no way to confuse versions or something like that.
Result is the same.
Failed loading /usr/lib64/php-zts/7.0/modules/xdebug.so: /usr/lib64/php-zts/7.0/modules/xdebug.so: undefined symbol: compiler_globals
AND custom config file for ZTS
Solved the issue, I was just looking to the old logs.
I think it would be nice to somehow mention in documentation this flow for ZTS configuration.
The use of "zts-phpize" is very much not standard to either PHP or Xdebug itself. It seems to be a feature of some distributions, which I can't all support.
We do have some information about phpize with using --with-php-config though at https://xdebug.org/docs/faq#custom-phpize
If you would like to draft an extra FAQ section, or expand on the existing one, feel free to send that to me, or even better would be a pull request for it through github: https://github.com/xdebug/xdebug.org/blob/master/html/docs/include/features.php#L1327
As there is nothing really to fix on my side for this, I am resolving this issue.
|2017-04-16 13:45||Dambul||New Issue|
|2017-04-16 15:47||Dambul||Note Added: 0004268|
|2017-04-16 16:41||Dambul||Note Added: 0004269|
|2017-04-16 16:48||Dambul||Note Added: 0004270|
|2017-04-17 17:26||derick||Note Added: 0004273|
|2017-04-17 17:26||derick||Status||new => resolved|
|2017-04-17 17:26||derick||Resolution||open => no change required|
|2017-04-17 17:26||derick||Assigned To||=> derick|