安装vmware虚拟机和ubuntu18.04php
安装 php+apche+mysqlmysql
apt-get install php5.6 apt-get install libapache2-mod-php5.6web
安装mysql apt-get install mysql-server mysql-clientsql
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456'); 安装phpstorm+xdebug
安装phpstorm+jdkapache
安装jdk: apt install default-jre 安装phpstorm 下载安装包:https://download-cf.jetbrains.com/webide/PhpStorm-2018.2.3.tar.gz 复制到虚拟机解压,执行 ./bin/phpstorm.sh 安装
安装xdebug apt-get install php-xdebugubuntu
php -v 查看xdebug是否安装成功
在php.ini中配置:
zend_extension = /usr/lib/php/20170718/xdebug.so
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.trace_output_dir="/tmp/xdebug"
xdebug.profiler_enable=on
xdebug.profiler_output_dir="/tmp/xdebug"
xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORMphpstorm
配置phpstorm:ide
File-setting-phpdebug
调试demo3d