Install xdebug in Linux. (Debian, Ubuntu)

Source: Internet
Author: User
1: first download the download here download xdebug-2.1.2.tgz I downloaded to the downloads directory. in/home/yourName/Downloads/here. 2: Decompress the compilation cd into the Downloads directory and then run the following command tar-xvzfxdebug-2.1.2.tgzcdxdebug-2.1.2 &

1: Download

Click here to download xdebug-2.1.2.tgz

Download To the downloads directory. In/home/yourName/Downloads/here.


2: decompress and compile

Cd goes to the Downloads directory and runs the following commands in sequence.

  1. Tar-xvzf xdebug-2.1.2.tgz

  1. Cd xdebug-2.1.2
  1. Phpize
(If phpize does not have this command, you need to install phpize once. phpize allows php to support extension modules.
  1. Sudo apt-get install php5-Dev
This process takes several minutes, mainly because the network speed is slow --)
  1. ./Configure
  1. Make
  1. Make install
This interface is available.
  1. See any operating system documentation about shared librariesFor
  2. More information, suchAsThe ld (1)AndLd. so (8) manual pages.
  3. ----------------------------------------------------------------------
  4. Installing shared extensions:/usr/lib/php5/20090626 + lfs/
  5. + ---------------------------------------------------------------------- +
  6. |
  7. | Installation instructions |
  8. | ===============================|
  9. |
  10. | See http:// Xdebug.org/install.php#configure-php for instructions |
  11. | On how to enable XdebugForPHP. |
  12. |
  13. | Documentation is available onlineAsWell: |
  14. |-A list of all settings: http:// Xdebug.org/docs-settings.php |
  15. |-A list of all functions: http:// Xdebug.org/docs-functions.php |
  16. |-Profiling instructions: http:// Xdebug.org/docs-profiling2.php |
  17. |-Remote debugging: http:// Xdebug.org/docs-debugger.php |
  18. |
  19. |
  20. | NOTE: Please disregard the message |
  21. | You shoshould add"Extension = xdebug. so"To php. ini |
  22. | That is emitted by the PECL installer. This does not workFor|
  23. | Xdebug. |
  24. |
  25. + ---------------------------------------------------------------------- +
If make install fails, check whether you have the permission. Switch to the root permission and execute
 
  1. Su
  1. ********
  1. Cp modules/xdebug. so/usr/lib/php5/20090626 + lfs
The same is true here. If cp has a problem, manually copy it.
3: Edit php. iniTerminal
  1. Gvim/etc/php5/apache5/php. ini
Add
  1. Zend_extension =/usr/lib/php5/20090626 + lfs/xdebug. so
If you cannot modify php. ini, switch to the account and use root to modify it. Restart apache
  1. Sudo/etc/init. d/apache2 restart
4: View phpinfo
Zend appears at the beginning
  1. This program makesUseOf the Zend Scripting Language Engine:
  2. Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
  3. With Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
Installed successfully
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.