tom

2009Äê4ÔÂ22ÈÕ ÐÇÆÚÈý

xdebug install

Installing xdebug for PHP debugging on a CentOS box
Submitted by david on Thu, 02/19/2009 - 14:41



Here are the steps that worked for me to install eclipse with xdebug on a fresh CentOS box:
Make sure that phpize in on Centos: yum -y install php-devel
Make sure that pear is installed: yum install php-pear
Download the latest PDT 2.0 All In Ones: http://www.eclipse.org/pdt/downloads/
Get the latest xdebug and install:pecl install xdebug
Modify the php.ini:zend.ze1_compatibility_mode = Onzend_extension="/usr/lib/php/modules/xdebug.so"
Restart apache service
create a new .php test file:

Load the test page in a browser and look for the info on the Xdebug module. If you see it next to the Zend logo, it is successful

2009Äê4ÔÂ1ÈÕ ÐÇÆÚÈý

²é¿´Á¬½Ó״̬

netstat -n | awk ?'/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

±êÇ©£º

2009Äê3ÔÂ6ÈÕ ÐÇÆÚÎå

CentOS¹Ù·½ÍƼöµÄRPMforgeÈí¼þ²Ö¿â°²×°·½·¨

RPMForgeÓµÓÐ4000¶àÖÖCentOSµÄÈí¼þ°ü£¬±»CentOSÉçÇøÈÏΪÊÇ×ȫҲÊÇ×îÎȶ¨µÄÒ»¸öÈí¼þ²Ö¿â¡£
Ö÷Ò³£ºhttp://rpmforge.net/
1¡¢È·ÈÏϵͳÊÇ·ñ°²×°ÁËpriorityÕâ¸öyumµÄ²å¼þ£¬Õâ¸ö²å¼þÓÃÀ´±£Ö¤°²×°Èí¼þʱºòÈí¼þ²Ö¿âÏȺó´ÎÐò£¬Ò»°ãÊÇĬÈÏÏÈ´Ó¹Ù·½base»òÕß¾µÏñ°²×°£¬È»ºó´ÓÉçÇøÓû§contributeµÄÈí¼þÖа²×°£¬ÔÙ´ÓµÚÈý·½Èí¼þ²Ö¿âÖа²×°¡£µ±È»Õâ¸ö´ÎÐò¿ÉÒÔ×Ô¼º¸ü¸Ä£¬ÎªÁ˰²È«ºÍÎȶ¨»¹ÊÇÒÀÕÕÕâ¸ö´ÎÐò°É....
#yum install yum-priorities
°²×°ÍêÒÔºó²é¿´ /etc/yum/pluginconf.d/priorities.conf Îļþ£¬È·ÈÏÎļþÖÐÓÐÕâÒ»ÐÐ
[main]
enabled=1
2¡¢ÏÖÔھͿÉÒÔÊÖ¶¯±à¼­ /etc/yum.repos.d/ Ŀ¼Öкó׺Ϊ.reposµÄÎļþÀ´ÉèÖÃÈí¼þ²Ö¿âµÄÏȺó´ÎÐò£¨¸Ð¾õÎÒÕâ¸ö·­Òë²»ÊǺÜÊʵ±£¬priorityÖ÷Òª»¹ÊǸöȨÏÞÎÊÌ⣬µ«Ò»Ê±ÕÒ²»µ½¸üºÃµÄ´Ê£¬¾ÍÕâÑù°É£©....
priority=N(NÊÇÕûÊý£¬·¶Î§´Ó1-99)
¹Ù·½ÍƼöÅäÖÃÊÇ
[base], [addons], [updates], [extras] ... priority=1
[centosplus],[contrib] ... priority=2
Third Party Repos such as rpmforge ... priority=N (where N is > 10 and based on your preference)
3¡¢ÏÖÔÚ¿ªÊ¼°²×°rpmforgeµÄÈí¼þ²Ö¿â
a ÏÈÏÂÔØrpmforgeµÄ°²×°°ü
i386 http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
x86_64 http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
*²»ÖªµÀʲô¼Ü¹¹µÄÓà uname -i ÃüÁî²é¿´
b °²×°DAGµÄPGP Key
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
c ÑéÖ¤ÏÂÔØ°üµÄÍêÕûÐÔ
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
d °²×°°ü
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
e ¸ü¸Ä /etc/yum.repos.d/rpmforge.repo ÅäÖÃÎļþ£¬¾ÍÊÇÌí¼Ó
priority=3£¨»òÕß1.2.4....£©ÕâÒ»¾ä
f ÏÖÔھͿÉÒÔʹÓÃrpmforgeÕâ¸öÈí¼þ²Ö¿âÁË....
±¾ÎÄÀ´Ö®£ºwww.humen1.com

±êÇ©£º

沪ICP备09016144