search
HomeBackend DevelopmentPHP7How to install PHP7 version of Xdebug under Centos

Introduction

Xdebug is an open source PHP program debugger; it can help you track, debug and analyze PHP programs, and also help you understand the underlying implementation principles and structure of PHP.

The following content here is based on Centos, and the windows system will not be described in detail.

Before installation

Before installation, we must first pass Run the php -m command to check whether Xdebug has been installed.

Installation preparation

First go to the official website of Xdebug to download the source package

Start the installation

1. First unzip the downloaded source package

How to install PHP7 version of Xdebug under Centos

Enter the decompressed folder cd xdebug-2.7.0alpha1

2. Run phpize after entering the folder. If you are prompted that there is no phpize command; use find / -name phpize to find the absolute path of phpize, and then run the absolute path.

3. Run ./configure. If you need to manually specify the PHP configuration path, run ./configure --enable-xdebug --with-php-config=/usr/local/php/bin/php- config

4. Run make && make install

How to install PHP7 version of Xdebug under Centos

5. After the installation is successful, we will be prompted to add content in php.ini

How to install PHP7 version of Xdebug under Centos

6. We will add extension=xdebug.so to php.ini according to the prompt given by the icon in step 5, and then restart php

How to install PHP7 version of Xdebug under Centos

7. After restarting PHP, check whether the installation has been successful through php -m

How to install PHP7 version of Xdebug under Centos

The installation is successful! ! (congratulation!)

The above is the detailed content of How to install PHP7 version of Xdebug under Centos. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:segmentfault. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools