centos 編譯安裝xdebug

來源:互聯網
上載者:User

標籤:centos xdebug

  1. 下載適合你php版本的xdebug源碼包

    我這裡是php5.3.3 ,下載xdebug2.2.5版本.

    如果不知道要下載什麼版本,可到http://www.xdebug.org/wizard.php

    裡文本款裡粘貼上你的phpinfo資訊.它會自動找到適合你php版本的xdebug

    wget http://www.xdebug.org/files/xdebug-2.2.5.tgz


  2. 編譯安裝xdebug

    安裝編譯環境:yum -y install gcc gcc-c++

    phpize

    tar zxvf xdebug-2.2.5.tgz 

    cd xdebug-2.2.5

    ./configure --enable-xdebug --with-php-config=/usr/bin/php-config

    make

    make install

    安裝完顯示

     650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/4D/4E/wKioL1RPQAay6L3bAAKHSyvMm-4249.jpg" title="QQ20141028150131.jpg" alt="wKioL1RPQAay6L3bAAKHSyvMm-4249.jpg" />

    

3. cp modules/xdebug.so /usr/lib64/php/modules/

4. 在/etc/php.ini 添加以下內容

display_errors = On

[Xdebug]

zend_extension="/usr/lib64/php/modules/xdebug.so"

zend_extension_ts="/usr/lib64/php/modules/xdebug.so"

xdebug.auto_trace= on

xdebug.collect_assignments = on

xdebug.auto_profile = on

xdebug.collect_params = on

xdebug.collect_return = on

xdebug.profiler_enable = on

xdebug.trace_output_dir = "/tmp"

xdebug.profiler_output_dir = "/tmp"

xdebug.dump.GET = *

xdebug.dump.POST = *

xdebug.dump.COOKIE = *

xdebug.dump.SESSION = *

xdebug.var_display_max_data = 4056

xdebug.var_display_max_depth = 5

xdebug.remote_enable = On

xdebug.remote_connect_back = On

xdebug.remote_port=9000

5.在防火牆開啟9000連接埠

-A INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT

6. 檢查是否安裝成功

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/4D/4E/wKiom1RPQA7xCuaMAAC-EYBZdLs649.jpg" title="QQ20141028150428.jpg" alt="wKiom1RPQA7xCuaMAAC-EYBZdLs649.jpg" />




本文出自 “Linux_life” 部落格,請務必保留此出處http://snbolinux.blog.51cto.com/3069187/1568864

centos 編譯安裝xdebug

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.