卸载所有版本的php:
卸载所有的php版本
sudo aptitude purge dpkg -l | grep php| awk '{print $2}' |tr "\n" " "
安装php7.3
sudo aptitude install software-properties-common python-software-properties
sudo add-apt-repository ppa:ondrej/php && sudo apt-get update
sudo aptitude -y install php7.3
sudo aptitude install php7.3-fpm php7.3-mysql php7.3-curl php7.3-json php7.3-mbstring php7.3-xml php7.3-intl php7.3-gd php7.3-soap -y
sudo aptitude install php7.3-gmp php7.3-odbc php7.3-pspell php7.3-bcmath php7.3-enchant php7.3-imap php7.3-ldap php7.3-opcache -y
sudo aptitude install php7.3-readline php7.3-sqlite3 php7.3-xmlrpc php7.3-bz2 php7.3-interbase php7.3-pgsql php7.3-recode php7.3-sybase -y
sudo aptitude install php7.3-xsl php7.3-cgi php7.3-dba php7.3-phpdbg php7.3-snmp php7.3-tidy php7.3-zip -y
sudo aptitude install php7.3-dev php-pear php7.3-redis php-mysql -y
安装sdebug:
https://github.com/mabu233/sdebug/tree/sdebug_2_7 按照提示安装
php需要7.3 phpstorm需要最低2019版本
配置cli运行就可以断点调试
网友评论