How to install Xdebug


ssh under root

remove noexec flag from temp dir

mount -o remount,exec /var/tmp/

yum install make gcc glibc-devel zlib-devel re2c

yum install lsphp72-devel
/usr/local/lsws/lsphp72/bin/pecl install xdebug
chmod 755 /usr/local/lsws/lsphp72/lib64/php/modules/

yum install lsphp73-devel
/usr/local/lsws/lsphp73/bin/pecl install xdebug
chmod 755 /usr/local/lsws/lsphp73/lib64/php/modules/

#set flag back
mount -o remount,noexec /var/tmp/

open cyberpanel go to SERVER-> PHP → Edit configs and select advanced
find section “Dynamic Extensions” add

extension =

in php72, 73 configs