update-alternatives --config php

apt-get install php7.3-fpm
find / -name www.conf

vim /etc/php/7.3/fpm/pool.d/www.conf

service php7.3-fpm restart
cd /etc/nginx/sites-enabled/

vim example.com

service nginx restart

Xdebug: Support — Tailored Installation Instructions


wget https://xdebug.org/files/xdebug-3.6.tgz
apt-get install php7.3-dev autoconf automake
tar -xvzf xdebug-1.6.tgz
cd xdebug-3.1.6
phpize phpize

./configure
make
cp modules/xdebug.so /usr/lib/php/20180731/
vim /etc/php/7.3/fpm/conf.d/99-xdebug.ini
(第一行路径用find /usr/lib/php/ -name "xdebug.so"找)

zend_extension=/usr/lib/php/20180731/xdebug.so [xdebug] xdebug.mode=debug xdebug.start_with_request=yes xdebug.client_host=127.0.0.1 xdebug.client_port=9003 xdebug.log=/tmp/xdebug.log systemctl restart php7.3-fpm














