Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
phpbrew 5.5.32 xdebug installation
# We need to re-build the php version because we removed it when compressing the box.
# In a newer version . . . I can pre-build the xdebug module when building the box, but 'disable' it by default.
# This can also be done for other common modules.
source /etc/profile.d/
phpbrew use php-5.5.32
apt-get install -y bison php5-dev libbz2-dev libicu-dev libfreetype6 libfreetype6-dev libjpeg-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libpng12-dev libreadline-dev libxml2-dev libxslt1-dev ccache pkg-config
phpbrew install 5.5.32 +default +fpm +mysql +fileinfo +gd +intl +mcrypt +mhash +openssl +pcre +session +soap +zlib -- --with-mysqli=/usr/bin/mysql_config --with-freetype-dir=/usr/include/freetype2
phpbrew ext install xdebug stable
service php5.5.32-fpm restart

This comment has been minimized.

Copy link

@grayguest grayguest commented Jun 10, 2020

sometimes need assign version, for example, for php 5.6.40

phpbrew ext install xdebug 2.5.5

if somebody has problem, please check

tail /home/xiaopo/.phpbrew/build/php-<version>/ext/xdebug/build.log

and last line output maybe

checking Check for supported PHP versions... configure: error: not supported. Need a PHP version >= 7.1.0 and < 8.0.0 (found 5.6.40)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment