Skip to content

Instantly share code, notes, and snippets.

@Tuurlijk
Created April 11, 2016 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Tuurlijk/4d92ff1f7ddbbfbf41f8e689f538f8a3 to your computer and use it in GitHub Desktop.
Save Tuurlijk/4d92ff1f7ddbbfbf41f8e689f538f8a3 to your computer and use it in GitHub Desktop.
phpbrew 5.5.32 xdebug installation
#!/bin/bash
#
# 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.sh
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
@grayguest
Copy link

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)

References:

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