centos安装xdebug
2015-06-24 17:30
211 查看
参考:http://segmentfault.com/a/1190000002608306
首先下载xdebug的源码,到http://www.xdebug.com/download.php
#wget http://www.xdebug.com/files/xdebug-2.3.3.tgz
解压缩
#phpize
#./configure
#make
#make install
安装后会看到提示信息
#vim /etc/php.ini
添加一行 zend_extension=/usr/lib64/php/modules/xdebug.so
#service php-ftpm restart
如果需要远程调试,再加入下面两行:
xdebug.remote_enable = on
xdebug.remote_host = 10.10.10.10
首先下载xdebug的源码,到http://www.xdebug.com/download.php
#wget http://www.xdebug.com/files/xdebug-2.3.3.tgz
解压缩
#phpize
#./configure
#make
#make install
安装后会看到提示信息
Installing shared extensions: /usr/lib64/php/modules/ +----------------------------------------------------------------------+ | | | INSTALLATION INSTRUCTIONS | | ========================= | | | | See http://xdebug.org/install.php#configure-php for instructions | | on how to enable Xdebug for PHP. | | | | Documentation is available online as well: | | - A list of all settings: http://xdebug.org/docs-settings.php | | - A list of all functions: http://xdebug.org/docs-functions.php | | - Profiling instructions: http://xdebug.org/docs-profiling2.php | | - Remote debugging: http://xdebug.org/docs-debugger.php | | | | | | NOTE: Please disregard the message | | You should add "extension=xdebug.so" to php.ini | | that is emitted by the PECL installer. This does not work for | | Xdebug. | | | +----------------------------------------------------------------------+
#vim /etc/php.ini
添加一行 zend_extension=/usr/lib64/php/modules/xdebug.so
#service php-ftpm restart
如果需要远程调试,再加入下面两行:
xdebug.remote_enable = on
xdebug.remote_host = 10.10.10.10
相关文章推荐
- Linux下防御/减轻DDOS***的方法
- 每天进步一点点——linux——less
- Cygwin--unix/linux模拟环境[转]
- linux proc/net/
- Linux进程通信之信号量
- Linux日志文件系统及性能分析
- 每天进步一点点——linux——tail
- CentOS 安装 OCS+GLPI
- 虚拟机kali-1.1.0a安装vmtools
- 每天进步一点点——linux——more
- 设定Linux OEL 5.8时间NTP server同步
- DHCP服务介绍及Linux下DHCP服务的管理配置 推荐
- Linux系统编程—— fork() 函数详解
- Linux中awk---例子
- Linux 误删文件
- Linux 查看进程以及子进程/线程
- 【读书笔记】Linux高性能服务器编程(第一篇 第四章)
- linux问题
- linux几种快速清空文件内容的方法
- Linux下查看系统支持最大内存及硬件信息