Created
June 15, 2020 13:00
-
-
Save danielpost/a7232c18ee541017184a7d23e20ede01 to your computer and use it in GitHub Desktop.
Installing Xdebug on RunCloud server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This still works! Just change php and xdebug versions. Thanks @danielpost!