Install Xdebug in Ubuntu

Source: Internet
Author: User
Xdebug is a Swiss Army knife for debugging and tracking php programs in Ubuntu. It is a required tool during php development. The ghost is installed in Ubuntu and the installation process is recorded. The first step is to have a php environment. I use pecl to download and install it, which saves the trouble of manual compilation. If pecl is not available, install php-pear, but the source code is still downloaded by pecl, after the download will automatically compile, during the use of a phpize stuff, if there is no phpize on the installation of the php5-dev I have been

Xdebug is a Swiss Army knife for debugging and tracking php programs in Ubuntu. It is a required tool during php development. The ghost is installed in Ubuntu and the installation process is recorded.

First, you must have a php environment.
I used pecl to download and install it, saving the trouble of manual compilation.
If you do not have pecl on the installation of php-pear, but the pecl download is the source code, the download will be automatically compiled, during the use of a phpize stuff, if there is no phpize on the installation of php5-dev

The entire process is as follows...

Sudo apt-get install php-pear
Sudo apt-get install php5-dev
Sudo pecl install xdebug

After the download and installation are complete, add
Extension = xdebug. so
And
[Zend]
Zend_extension = "/usr/local/php/modules/xdebug. so"
Restart apache.

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.