新聞中心
實驗環(huán)境CentOS
讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領域值得信任、有價值的長期合作伙伴,公司提供的服務項目有:空間域名、網(wǎng)頁空間、營銷軟件、網(wǎng)站建設、善右網(wǎng)站維護、網(wǎng)站推廣。
phpinfo()
顯示
PHP Version 5.3.3
去官網(wǎng)http://www.xdebug.org/對應下載
xdebug-2.2.5
linux下解壓xdebug包。
1、進入xdebug,在這個目錄下先運行php目錄下面的bin/phpize;
我的機子,運行phpize出錯
[root@localhost xdebug-2.2.5]# phpize -bash: phpize: command not found
安裝phpize
phpize是屬于php-devel的內(nèi)容
yum install php-devel -y [root@localhost xdebug-2.2.5]# phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626
2、在運行
[root@localhost xdebug-2.2.5]#./configure --enable-xdebug [root@localhost xdebug-2.2.5]#make
好了,編譯結(jié)束了。
[root@localhost xdebug-2.2.5]# ll modules/ total 660 -rw-r--r--. 1 root root 923 Oct 17 06:19 xdebug.la -rwxr-xr-x. 1 root root 668885 Oct 17 06:19 xdebug.so
這是時候會在xdebug的目錄下生成 目錄modules,目錄下有xdebug.so文件,把xdebug.so復制到你想放的目錄。
3. 編輯php.ini文件
再php的配置文件后面加上
zend_extension = "/路徑/xdebug.so"
如下:
zend_extension="/home/samba/test/xdebug-2.2.5/modules/xdebug.so" xdebug.profiler_enable = on xdebug.default_enable = on xdebug.trace_output_dir="/tmp/xdebug" xdebug.trace_output_name = trace.%c.%p xdebug.profiler_output_dir="/tmp/xdebug" xdebug.profiler_output_name="cachegrind.out.%s"
[root@localhost xdebug-2.2.5]#service httpd restart
phpinfo()
顯示
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans
或者
[root@localhost etc]# php -m |grep debug xdebug Xdebug
網(wǎng)頁題目:php中xdebug安裝
當前地址:http://fisionsoft.com.cn/article/gecgoh.html