Installing Xdebug on CentOS
2013-07-23 21:40
387 查看
Installing Xdebug on CentOS
Here are exact steps to follow:1. You need to install PHP’s devel package for PHP commands execution
yum install php-devel
Make sure you also have php-paer package installed
yum install php-pear
2. Next install GCC and GCC C++ compilers to compile Xdebug extension yourself.
yum install gcc gcc-c++ autoconf automake
3. Compile Xdebug
pecl install Xdebug
4. Find the php.ini file using
locate php.ini
And add the following line
[xdebug] zend_extension="/usr/lib64/php/modules/xdebug.so" xdebug.remote_enable = 1
5. Restart Apache
service httpd restart
6. Test if it works – create test.php with the following code
<?php phpinfo() ?>
and check if you have the following output
Summary: You installed XDebug by Derick
Rethans as Zend_Extension. Installing XDebug as Zend Extension is very important because that way you can Debug step by step in different IDEs.
If you like to compile the xdebug.so object file yourself in order to get the latest version of xdebug.so here are the steps to follow:
1. Download latest xdebug-X.Y.Z.tgz from xdebug web site
2. Unpack the downloaded file with tar -xvzf xdebug-X.Y.Z.tgz to some test folder
3. Run: cd xdebug-X.Y.Z
4. Run: phpize (to prepare the environment)
5. Run: ./configure
6. Run: make (now you have xdebug.so created;)
7. Copy xdebug.so to your modules file (in my case /usr/lib64/php/modules)
8. Make sure you have the following in php.ini
zend_extension = /usr/lib64/php/modules/xdebug.so
9. Restart the webserver
转自:http://programming-review.com/installing-xdebug-on-centos/
相关文章推荐
- Installing the EPEL Repository on CentOS or RHEL
- Installing CUDA Toolkit 5.0 on CentOS 6.4
- Installing Python 2.7.2 on Centos 5.2
- Installing docker.io on centos 6.4 (64-bit)
- Installing Xen on CentOS 6 from source
- Installing PHP5.4 on Centos 5.8
- Installing NFS on CentOS 6.2
- Installing KVM on CentOS 5.5
- Installing RHEL EPEL Repo on Centos 5.x or 6.x
- Installing nodejs and npm on CentOS
- Installing MySQL Server on CentOS
- New method for installing Python 2.6.4 (with mysql-python) on CentOS 5.5
- Installing Percona XtraDB Cluster on CentOS
- Installing VMware tools on Centos 6.8 via yum
- [Installing Metasploit Framework on CentOS_RHEL 6]在CentOS_RHEL 6上安装Metasploit的框架【翻译】
- Installing GitLab 2.1 on Centos 6
- Installing Virtualbox 4.1 on CentOS 6.2
- Installing SSL on CentOS | My Virtual Time Capsule
- Installing python 2.7 on centos 6.3.
- Installing Jenkins on Centos 7