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.
- Tar-xvzf xdebug-2.1.2.tgz
- Cd xdebug-2.1.2
- Phpize
(If phpize does not have this command, you need to install phpize once. phpize allows php to support extension modules.
- Sudo apt-get install php5-Dev
This process takes several minutes, mainly because the network speed is slow --)
- ./Configure
- Make
- Make install
This interface is available.
- See any operating system documentation about shared librariesFor
- More information, suchAsThe ld (1)AndLd. so (8) manual pages.
- ----------------------------------------------------------------------
- Installing shared extensions:/usr/lib/php5/20090626 + lfs/
- + ---------------------------------------------------------------------- +
- |
- | Installation instructions |
- | ===============================|
- |
- | See http:// Xdebug.org/install.php#configure-php for instructions |
- | On how to enable XdebugForPHP. |
- |
- | Documentation is available onlineAsWell: |
- |-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 shoshould add"Extension = xdebug. so"To php. ini |
- | That is emitted by the PECL installer. This does not workFor|
- | Xdebug. |
- |
- + ---------------------------------------------------------------------- +
If make install fails, check whether you have the permission. Switch to the root permission and execute
- Su
- ********
- 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
- Gvim/etc/php5/apache5/php. ini
Add
- 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
- Sudo/etc/init. d/apache2 restart
4: View phpinfo
Zend appears at the beginning
- This program makesUseOf the Zend Scripting Language Engine:
- Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
- With Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
Installed successfully