How to install PHP xdebug extension on Centos 6

How to install PHP xdebug extension on Centos 6



How to install PHP xdebug extension on Centos 6

Saturday October 6, 2018 Gilblas Ngunte Possi
This article will show you how to install PHP xdebug extension on Centos 6. In fact, some of the software like Magento (latest version requires xdebug). I, for example, had to install it in order to upgrade Magento from 2.18 to Magento 2.26. To find out more about this extension and how it can help you to power your application, visit the official website For the clarity purpose, I will try to be as concise as possible. Please do not hesitate to contact us or to share with friends and colleagues.

install PHP xdebug extension on Centos 6 for Magento 2 upgrade

This week, I had to upgrade a Magneto website from 2.18 to 2.2.6. In the process of doing so, I find myself blocked at the stage of Readiness Check. Even though almost all the requirements were fulfilled, I could not proceed because of the xdebug extension. To be honest with you, it was the first time, I faced that type of issue as must of the servers I previously worked on already had the extension. Because I believe that you might face the same problem, I am sharing these steps to follow. install PHP xdebug extension

steps to install PHP xdebug extension on Centos 6

Note that, you will find a complete documentation about xdebug on the website Moreover, this articles is based on my own situation; i.e. Centos 6, PHP 7.0.x with some extensions already present. However, if you pay attention to some details you will save some time in your installation process. Follow these steps :

Steps 1: generate php information from your current website

In order to do that, all you need to do is create a PHP file in your server and paste this piece of code. The phpinfo function will actually get all you PHP setting and function and display on the page you just created. Once you pasted and saved the function, you can lead it on a browser. For example, if you created a file call try.php  under the main directory, of the website, you can open on your browser. You can now copy the output of your PHP information for the step 2.   [sourcecode] <?php echo phpinfo(); ?> [/sourcecode]

Step 2: visit the website

On the xdebug website, there is a form that can analyze your PHP information and display the steps that you need to follow. Hence, the output that you copied on step one, you can paste in the form. One you paste PHP information and hit submit, you will see a page similar to the picture below. xedbug output

Step 3: follow the instructions provided by the website

Xdebug website provides you will clear steps that if followed properly, you will help to install the extension. However, in step 8 of the instruction, you need to paste the code below instead. Otherwise, you might have 500 internal server error.   [sourcecode] extension = /opt/cpanel/ea-php70/root/usr/lib64/php/modules/ [/sourcecode] Thanks for reading the article about how to install PHP xdebug extension on Centos 6. If you have any question or a remark, please contact us.  
Stay Updated

Get the latest updates and offers.