Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save danielpost/a7232c18ee541017184a7d23e20ede01 to your computer and use it in GitHub Desktop.
Save danielpost/a7232c18ee541017184a7d23e20ede01 to your computer and use it in GitHub Desktop.
Installing Xdebug on RunCloud server
apt-get install autoconf libpcre3-dev
MODULE_NAME="xdebug"
MODULE_VERSION="2.9.6"
cd ~
wget https://xdebug.org/files/xdebug-2.9.6.tgz
tar -zxvf xdebug-2.9.6.tgz
cd xdebug-2.9.6
/RunCloud/Packages/php74rc/bin/phpize --clean
/RunCloud/Packages/php74rc/bin/phpize
./configure --with-php-config=/RunCloud/Packages/php74rc/bin/php-config --with-libdir=lib64 CFLAGS='-O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -fsigned-char -fno-strict-aliasing'
make
make install
echo "zend_extension=xdebug.so" > /etc/php74rc/conf.d/xdebug.ini
make clean
systemctl restart php74rc-fpm
/RunCloud/Packages/php74rc/bin/php -m
@hmouhtar
Copy link

Thanks!!!!

@robertlaneSUDO
Copy link

This still works! Just change php and xdebug versions. Thanks @danielpost!

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