debian 配置php xdebug

1 安装debian系统(仅需要命令行就行)
加载网络安装镜像 断网安装

2 debian的源配置 mirros.163.com
去看163配置文件的地址

wget htt.... 

备份原来的
cp过去

apt-get update

apt-get upgrade

安装 gcc make kernel headerfile

安装 配置 vsftpd
掩码022 rw-r--r--

安装配置 apache php

apt-get install apache2

http://php.net/manual/zh/install.unix.debian.php

apt-get install php5-xdebug

安装 mysql
apt-get install mysql-server

mysql -u root -p 

creat database bfy;

grant all on bfy.* to bfy@192.168.1.x identified by "bfy";

修改MySQL的配置文件/etc/mysql/my.cnf
注释掉 #bind-address = 127.0.0.1

############################################

//php 调试
echo $x;
var_dump();
printf();
print_r();
debug_zval_dump();
debug_print_backtrace(); //查看程序的调用栈

//xdebug 开发环境
//指明编译好的xdebug所在位置
zend_extension="/usr/lib/php5/20100525/xdebug.so"
//远程调试开启
xdebug.remote_enable=On
//远程主机地址
xdebug.remote_host=192.168.56.1
//远程主机上 开发环境开放的端口
xdebug.remote_port=9000

//调试
/* ------ bfy debug begin ------- /
echo '-------\n';
print_r();
echo '-------\n';
return;
/
------ bfy debug end ------- */

//wordpress 中的几个常用函数
addfilter() //为某个消息类型添加处理函数
//就像为某个事件添加处理函数
applyfilter() //"触发"某个事件

/*******************TEMP********************************************************
#0 require_once() called at [/var/www/wp/wp-blog-header.php:16]
#1 require(/var/www/wp/wp-blog-header.php) called at [/var/www/wp/index.php:21]
------/var/www/wp/wp-content/themes/twentyfourteen/index.php-----

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容