install xdebug on fedora

Compiling

There is a wizard available that provides you with the correct file to download, and which paths to use.

You compile Xdebug separately from the rest of PHP. Note, however, that you need access to the scripts ‘phpize‘ and ‘php-config‘. If your system does not have ‘phpize‘ and ‘php-config‘, you will need to compile and install PHP from a source tarball first, as these script are by-products of the PHP compilation and installation processes. (Debian users can install the required tools with apt-get install php5-dev). It is important that the source version matches the installed version as there are slight, but important, differences between PHP versions. Once you have access to ‘phpize‘ and ‘php-config‘, do the following:

  1. Unpack the tarball: tar -xzf xdebug-2.2.5.tgz. Note that you do not need to unpack the tarball inside the PHP source code tree. Xdebug is compiled separately, all by itself, as stated above.
  2. cd xdebug-2.2.5
  3. Run phpize: phpize (or /path/to/phpize if phpize is not in your path). Make sure you use the phpize that belongs to the PHP version that you want to use Xdebug with. See this FAQ entry if you‘re having some issues with finding which phpize to use.
  4. ./configure --enable-xdebug
  5. make
  6. make install

这一步装完,会有提示:

[[email protected] xdebug-2.2.5]$ sudo make install
Installing shared extensions:     /usr/lib64/php/modules/

  +----------------------------------------------------------------------+
  |                                                                      |
  |   INSTALLATION INSTRUCTIONS                                          |
  |   =========================                                          |
  |                                                                      |
  |   See http://xdebug.org/install.php#configure-php for instructions   |
  |   on how to enable Xdebug for PHP.                                   |
  |                                                                      |
  |   Documentation is available online as well:                         |
  |   - A list of all settings:  http://xdebug.org/docs-settings.php     |
  |   - A list of all functions: http://xdebug.org/docs-functions.php    |
  |   - Profiling instructions:  http://xdebug.org/docs-profiling2.php   |
  |   - Remote debugging:        http://xdebug.org/docs-debugger.php     |
  |                                                                      |
  |                                                                      |
  |   NOTE: Please disregard the message                                 |
  |       You should add "extension=xdebug.so" to php.ini                |
  |   that is emitted by the PECL installer. This does not work for      |
  |   Xdebug.                                                            |
  |                                                                      |
  +----------------------------------------------------------------------+

[[email protected] xdebug-2.2.5]$ ll /usr/lib64/php/modules/
total 10988
-rwxr-xr-x. 1 root root   32568 Jan 22 17:09 bcmath.so
-rwxr-xr-x. 1 root root   24696 Jan 22 17:09 bz2.so
-rwxr-xr-x. 1 root root   33752 Jan 22 17:09 calendar.so
-rwxr-xr-x. 1 root root   15568 Jan 22 17:09 ctype.so
-rwxr-xr-x. 1 root root   86912 Jan 22 17:09 curl.so
-rwxr-xr-x. 1 root root  180608 Jan 22 17:09 dom.so
-rwxr-xr-x. 1 root root   65496 Jan 22 17:09 exif.so
-rwxr-xr-x. 1 root root 2713344 Jan 22 17:09 fileinfo.so
-rwxr-xr-x. 1 root root   53624 Jan 22 17:09 ftp.so
-rwxr-xr-x. 1 root root  120896 Jan 22 17:09 gd.so
-rwxr-xr-x. 1 root root   15640 Jan 22 17:09 gettext.so
-rwxr-xr-x. 1 root root   45080 Jan 22 17:09 iconv.so
-rwxr-xr-x. 1 root root   40840 Aug  1  2014 json.so
-rwxr-xr-x. 1 root root 1420712 Jan 22 17:09 mbstring.so
-rwxr-xr-x. 1 root root   45256 Jan 22 17:09 mcrypt.so
-rwxr--r--. 1 root root  329181 Feb 25 23:04 memcached.so
-rwxr--r--. 1 root root  288786 Feb 25 23:04 memcache.so
-rwxr-xr-x. 1 root root  141320 Jan 22 17:09 mysqlnd_mysqli.so
-rwxr-xr-x. 1 root root   53544 Jan 22 17:09 mysqlnd_mysql.so
-rwxr-xr-x. 1 root root 2362280 Jan 22 17:09 mysqlnd.so
-rwxr-xr-x. 1 root root   32896 Jan 22 17:09 pdo_mysqlnd.so
-rwxr-xr-x. 1 root root  116240 Jan 22 17:09 pdo.so
-rwxr-xr-x. 1 root root   29168 Jan 22 17:09 pdo_sqlite.so
-rwxr-xr-x. 1 root root  271984 Jan 22 17:09 phar.so
-rwxr-xr-x. 1 root root   32880 Jan 22 17:09 posix.so
-rwxr--r--. 1 root root 1075737 Feb 25 23:04 redis.so
-rwxr-xr-x. 1 root root   15624 Jan 22 17:09 shmop.so
-rwxr-xr-x. 1 root root   54168 Jan 22 17:09 simplexml.so
-rwxr-xr-x. 1 root root   91368 Jan 22 17:09 sockets.so
-rwxr-xr-x. 1 root root   51328 Jan 22 17:09 sqlite3.so
-rwxr-xr-x. 1 root root   19880 Jan 22 17:09 sysvmsg.so
-rwxr-xr-x. 1 root root   11496 Jan 22 17:09 sysvsem.so
-rwxr-xr-x. 1 root root   15720 Jan 22 17:09 sysvshm.so
-rwxr-xr-x. 1 root root   53896 Jan 22 17:09 tidy.so
-rwxr-xr-x. 1 root root   19712 Jan 22 17:09 tokenizer.so
-rwxr-xr-x. 1 root root   36720 Jan 22 17:09 wddx.so
-rwxr-xr-x  1 root root  925237 Mar 18 23:27 xdebug.so
-rwxr-xr-x. 1 root root   32888 Jan 22 17:09 xmlreader.so
-rwxr-xr-x. 1 root root   54080 Jan 22 17:09 xml.so
-rwxr-xr-x. 1 root root   49152 Jan 22 17:09 xmlwriter.so
-rwxr-xr-x. 1 root root   37104 Jan 22 17:09 xsl.so
-rwxr-xr-x. 1 root root   62480 Jan 29  2014 zip.so

/wherever/you/put/it/xdebug.so 就是 /usr/lib64/php/modules/xdebug.so

Configure PHP to Use Xdebug

  1. add the following line to php.ini: zend_extension="/wherever/you/put/it/xdebug.so". For PHP versions earlier than 5.3 and threaded usage of PHP (Apache 2 worker MPM or the ISAPI module), add: zend_extension_ts="/wherever/you/put/it/xdebug.so" instead. Note: In case you compiled PHP yourself and used --enable-debug you would have to use zend_extension_debug=. From PHP 5.3 onwards, you always need to use the zend_extension PHP.ini setting name, and not zend_extension_ts, nor zend_extension_debug. However, your compile options (ZTS/normal build; debug/non-debug) still need to match with what PHP is using.
  2. Restart your webserver.
  3. Write a PHP page that calls ‘phpinfo()‘ Load it in a browser and look for the info on the Xdebug module. If you see it next to the Zend logo, you have been successful! You can also use ‘php -m‘ if you have a command line version of PHP, it lists all loaded modules. Xdebug should appear twice there (once under ‘PHP Modules‘ and once under ‘Zend Modules‘).
时间: 2024-10-16 16:42:44

install xdebug on fedora的相关文章

Install PostgreSql in Fedora 27

国庆之后,云栖大会杭州分会上相关专家做了一个关于Postgresql的专题分享,其中提到了Postgresql 10的一些新特性,个人感觉倍受鼓舞,接下来希望分别针对Ubuntu 16.04LTS和Fedora27上如何安装并配置Postgresql 10做一个简要介绍.这篇博客主要针对Fedora 27做简要介绍. 1.安装 大家进入Postgresql官网下载页面,选择数据版本postgreql10,Linux 发行套件Fedora 27,然后选择64位,即x86_64,这个时候就会出现相关

Fedora 25/24/23 nVidia Drivers Install Guide

https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/ search Most Popular Featured Linux Programming Servers SQL Advertise If Not True Then False Most Popular Featured Linux Programming Servers SQL Advertise Fedora 25/24/23 nVidia Drivers

Fedora 23如何安装LAMP服务器

LAMP 是开源系统上 Web 服务器的梦幻组合.LAMP 是 Linux. Apache HTTP 服务. MySQL/MariaDB 数据库和 PHP. Perl 或 Python 的简称. 下面教你如何在 Fedora 23 服务器上安装 LAMP 组合. 下面的教程默认使用 192.168.1.102/24 实例,请按照你的服务器做修改. 安装 Apache Apache 是一款开源的 web 服务框架.完全支持 CGI, SSL. 切换到 root 账户: su Fedora 23/2

vim+xdebug调试PHP

一.安装xdebug 1.编译安装xdebug,也可以使用pecl install xdebug wget http://xdebug.org/files/xdebug-2.3.2.tgz tar -zxvf xdebug-2.3.2.tgz cd xdebug-2.3.2 phpize ./configure --enable-xdebug --with-php-config=/data/php/bin/php-config make && make install 这一步会 生成xde

fedora 配置使用点滴

fedora 配置使用点滴 fedora 16 无线网设置 fodera16是3.x的内核,无线网卡的驱动有点不一样. 可以用如下方法安装,需要先用有线网来安装几个包,步骤如下: 执行这个命令看看网卡 lspci | grep Network 如果是Broadcom Corporation这个厂商的 应该没有问题 我们继续 以下都在root下执行 执行这两个rpm包 它会为你的yum添加我们需要的源 rpm -Uvh http://download1.rpmfusion.org/free/fed

ubuntu下php开发环境搭建,nginx+(cgi)php5fpm+memcached+xdebug

由于只是开发环境,所以都是选择比较简单的apt-get安装方式 ,但中间也遇到一点问题. 首先安装nginx nginx的安装和配置其实很简单,nginx本身非常轻量级, 直接 sudo apt-get install nginx 就可以了 他的配置文件是在/etc/nginx/里面,网站项目路径是在/var/www里面,安装之后一定要确保nginx的启动账户有对网站目录的访问权限,否则会报错. 第二步,安装cgi linux底下的cgi程序非常多,在这里我选择的是php5-fpm 方便  在这

Install Robot Framework on Linux Fedora20 or ubuntu /on Mac /on windows

Install Robot Framework on Linux Step Description How to Note 0 Install Python sudo apt-get install python fedora:yum install python If not yet installed fedora: yum list python  /* can view which python version will be installed */ 1 Install easy_in

xdebug with XAMPP on Mac OS X

源blog地址http://blog.laaz.org/tech/2010/08/27/xdebug-with-xampp-on-mac-os-x/ I just upgraded my XAMPP to latest release and found myself trapped with no memory of how to install xdebug on a Mac with XAMPP. 0. Install Xcode and autoconf Thanks to Cedric

Fedora/RHEL/openSUSE等Linux安装vivaldi——vivaldi浏览器

Fedora/RHEL/openSUSE等Linux安装vivaldi浏览器指南. 个人认为vivaldi浏览器比较好用,也比较漂亮,适合小清新们使用,功能比较强大. 1.下载 vivaldi.repo 并保存 $ wget http://repo.fdzh.org/vivaldi/vivaldi.repo -P /etc/yum.repos.d/   # Fedora/RHEL $ wget http://repo.fdzh.org/vivaldi/vivaldi.repo -P /etc/z