How to compile and install xdebug from source code in Ubuntu environment

This article describes how to compile and install xdebug from source code in Ubuntu environment. Share with you for your reference, as follows:

I introduced the method of compiling and installing PHP and Nginx in the Ubuntu environment. Here, I will explain the method of compiling and installing xdebug from the source code.

Download and unzip xdebug

xdebug download address: https://xdebug.org/download.php

I downloaded 2.3.3, but I don’t know the difference between these versions, so I just downloaded one.

cd /usr/local/src
wget https://xdebug.org/files/xdebug-2.3.3.tgz
tar -zxvf xdebug-2.3.3.tgz

Compile and install xdebug

php is installed under the /opt/php path

cd /usr/local/src/xdebug-2.3.3/opt/php/bin/phpize
. /configure --prefix=/opt/xdebug --with-php-config=/opt/php/bin/php-config
make && make install

After the installation is successful, the following information will be displayed:

Installing shared extensions:
/opt/php/lib/php/extensions/no-debug-non-zts-20131226/

Configure php.ini

We add the xdebug extension at the end of php.ini:

zend_extension=/opt/php/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so

Restart nginx to take effect.

If you can’t find php.ini, you can use /opt/php/bin/php -i |grep php.ini to find the path information of php.ini. If the corresponding path does not have a php.ini file, you can use the extracted php In the source code, cpoy has a copy of php.ini-development or php.ini-production for use.

I hope this article will help you configure your Ubuntu environment.

Recommended Posts

How to compile and install xdebug from source code in Ubuntu environment
How to compile and install PHP and Nginx in Ubuntu environment
Compile and install OpenJDK8 from source code under Ubuntu 18.04.1
How to install memcache and start it in ubuntu environment
Ubuntu 18.04 source code compile and install ffmpeg4.1
How to install openssh from centos 7 source code
How to install python in ubuntu server environment
How to install Helm in Ubuntu
How to install mysql in Ubuntu 14.04
How to install mysql in Ubuntu 14.04
How to easily compile openJDK in Ubuntu
CentOS7.5 source code compile and install mysql5.7.29
How to install cuda10.1 driver in Ubuntu
How to install ROS Noetic in Ubuntu20.04
Download OpenJDK11 source code in Ubuntu environment
How to modify software source in Ubuntu 7.10
CentOS7.4 source code compile and install MySQL8.0
How to install Ubuntu20.04 and install NVIDIA driver
Edit OpenJDK11 source code in Ubuntu environment
How to install Visual Studio Code on Ubuntu 20.04
How to install Pycharm and Ipython on Ubuntu 16.04/18.04
How to install and configure NATS on Ubuntu 16.04
How to install and configure Gogs on Ubuntu 18.04
How to modify time zone and time in ubuntu
How to configure TensorFlow use environment in Ubuntu
How to install and configure Cyberpanel on Ubuntu 18.04
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04
How to install and configure ownCloud on Ubuntu 16.04
How to install and configure GitLab on Ubuntu 18.04
How to install and use Docker on Ubuntu 20.04
How to install and configure Ansible on Ubuntu 18.04
How to install and use Curl on Ubuntu 18.04
How to install and use Composer on Ubuntu 18.04
How to install and use Wine on Ubuntu 18.04
How to install and secure phpMyAdmin on Ubuntu 16.04
How to install and configure Elasticsearch on Ubuntu 16.04
How to install and configure PostGIS on Ubuntu 14.04
How to install and use Composer on Ubuntu 20.04
How to install and use BaasBox on Ubuntu 14.04
How to install and configure VNC on Ubuntu 18.04
How to install and configure Sphinx on Ubuntu 16.04
How to install and configure OrientDB on Ubuntu 14.04
How to install and use PostgreSQL on Ubuntu 16.04
How to install Visual Studio Code on Ubuntu 20.04
How to install and configure AppScale on Ubuntu 12.04
How to install and use Docker on Ubuntu 16.04
How to install and configure PostGIS on Ubuntu 14.04
How to install Hadoop in standalone mode on Ubuntu 18.04
How to install and use MySQL Workbench on Ubuntu 18.04
How to modify time zone and time in ubuntu system
How to install theano and keras on ubuntu system
How to create a Python virtual environment in Ubuntu 14.04
Ubuntu 16.04 compile and install PHP 7.2
ubuntu18.04 compile and install python3.8
How to install JDK and Mysql on Ubuntu 18.04 linux system
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to use hanlp in ubuntu