Ubuntu+PHP+Apache+Xdebug 使用方法
2013-05-23 17:27
375 查看
下面是我建立xdebug的全过程(简)
1、预备
2、在/etc/php5/apache/php.ini 里面添加如下
3、重启
4、查看 phpinfo
5、完毕
1、预备
sudo apt-get install php5 sudo apt-get install php5-dev php5-cli sudo apt-get install php5-xsl sudo apt-get install perl sudo pecl install xdebug //顺便说一下,装redis 也可一类似 sudo apt-get install php-pear ...
2、在/etc/php5/apache/php.ini 里面添加如下
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so" xdebug.profiler_enable=On xdebug.trace_output_dir="/data/log/xdebug" xdebug.profiler_output_dir="/data/log/xdebug" xdebug.default_enable=On xdebug.collect_params=On xdebug.remote_connect_back=On xdebug.remote_host=10.254.58.32 xdebug.remote_port=8888 xdebug.remote_enable=On xdebug.remote_handler=dbgp xdebug.remote_log="/data/log/xdebug/remote.log" xdebug.remote_req=req xdebug.auto_trace=Off ;xdebug.remote_autostart=On xdebug.show_exception_trace=0 xdebug.collect_vars=On xdebug.collect_return=On xdebug.var_display_max_depth=15 xdebug.show_local_vars=1 xdebug.dump_undefined=1
3、重启
sudo /etc/init.d/apache2 restart
4、查看 phpinfo
5、完毕
相关文章推荐
- Ubuntu(Linux)+XAMPP(LAMPP)+eclipse+PHP+XDebug 完整的开发环境配置方法 -
- PHP 服务器配置(使用Apache及IIS两种方法)
- PHP的学习--在sublime中使用XDebug(Ubuntu)
- PHPStorm设置xdebug工具调试php(使用浏览器或不使用浏览器两种方法)
- linux安装apache/mysql/php的最新完整方法(cents和ubuntu都实用)
- PHP 服务器配置(使用Apache及IIS两种方法)
- Zend Studio 如何配置本地apache服务器使用xdebug调试php脚本
- Yii2 编译器使用(ubuntu下PhpStorm+xdebug配置)
- ubuntu环境下使用apt-get配置apache+php+mysql
- apache mysql php 源码编译使用方法
- Ubuntu下Apache,PHP,MySQL安装方法(亲测)
- Zend Studio 如何配置本地apache服务器使用xdebug调试php脚本
- apache mysql php 源码编译使用方法
- Ubuntu server 11.04安装memcache及php使用memcache来存储session的方法
- Mac系统下使用自带Apache和php5.6使用xdebug进行调试
- Ubuntu下lamp(PHP+Mysql+Apache)搭建+完全卸载卸载方法
- PHPStorm设置xdebug工具调试php(使用浏览器或不使用浏览器两种方法)
- win2003下PHP使用preg_match_all导致apache崩溃问题的解决方法
- 关于Ubuntu下 如何在bash使用phpstudy 套件中的php 的方法
- Zend Studio 如何配置本地apache服务器使用xdebug调试php脚本