CentOS安装PHP的xdebug扩展功能
2013-11-11 17:03
405 查看
第一种方法:使用rpm包安装,使用的是ecel扩展仓库中的rpm包
The EPEL and REMI repo contains xdebug for php.
Their package name is: php-pecl-xdebug, so you can just go with yum install php-pecl-xdebug
EPEL 库的地址是:http://fedoraproject.org/wiki/EPEL
Also, for further reference on xdebug availability:http://pkgs.org/download/php-pecl-xdebug
php.ini配置文件中有一个选项可能会用到:http_errors,是否过滤错误信息中的HTML代码
第二种方法,使用源码编译安装,使用的是pecl方式,也可以直接下载源码编译安装
你可能还需要在编译环境中安装xdebug,下面的介绍应该会对你有帮助!
1. You need to install PHP’s devel package for PHP commands execution
Make sure you also have php-paer package installed
2. Next install GCC and GCC C++ compilers to compile Xdebug extension yourself.
3. Compile Xdebug
4. Find the php.ini file using
And add the following line
5. Restart Apache
6. Test if it works – create test.php with the following code
and check if you have the following output
说明:注意一下你的so文件存放的位置,一定要找正确位置才能正常使用!
The EPEL and REMI repo contains xdebug for php.
Their package name is: php-pecl-xdebug, so you can just go with yum install php-pecl-xdebug
EPEL 库的地址是:http://fedoraproject.org/wiki/EPEL
Also, for further reference on xdebug availability:http://pkgs.org/download/php-pecl-xdebug
php.ini配置文件中有一个选项可能会用到:http_errors,是否过滤错误信息中的HTML代码
第二种方法,使用源码编译安装,使用的是pecl方式,也可以直接下载源码编译安装
你可能还需要在编译环境中安装xdebug,下面的介绍应该会对你有帮助!
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
说明:注意一下你的so文件存放的位置,一定要找正确位置才能正常使用!
相关文章推荐
- centos安装php扩展xdebug安装以及用kcachegrind系统分析
- centos7.2 xdebug(php 扩展) 安装
- centos环境下为php安装扩展sysvmsg
- centos安装php的mysql扩展
- CentOS 安装Gearman及其PHP扩展
- CentOS下PHP的SSH2扩展安装方法
- centos下安装php的PDO PostgreSQL扩展
- centos下安装PHP的PDO扩展!
- centOS 5.6 编译安装Memcached 与Memcache的PHP扩展
- centos 单独安装PHP的mysql和mysqli扩展
- CentOS 下安装 Apache 和 PHP 并开启 mcrypt 扩展
- centos下安装coreseek和sphinx php扩展
- Centos通过phpize安装php扩展
- php扩展xdebug安装
- centos下安装PHP的PDO扩展!
- centos系统为php安装memcached扩展
- Centos 7(Linux)环境下安装PHP(编译添加)相应动态扩展模块so(以openssl.so为例)
- [centos] 安装php扩展<stomp>
- CentOS-6.9-x86_64一键安装wdlinux并给php扩展oci8
- 在Linux(centos)上安装PHP的mongodb扩展 成功试过的