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 https://xdebug.org/
. For the clarity purpose, I will try to be as concise as possible. Please do not hesitate to contact us
or to share it 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.
steps to install PHP xdebug extension on Centos 6
Note that, you will find the complete documentation about xdebug on the website https://xdebug.org/. Moreover, this article 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 called try.php under the main directory, of the website www.example.com, you can open www.example.com/try.php on your browser. You can now copy the output of your PHP information for step 2.
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 in 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.
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.
extension = /opt/cpanel/ea-php70/root/usr/lib64/php/modules/xdebug.so
Thanks for reading the article about how to install a PHP xdebug extension on Centos 6. If you have any question or
a remark, please contact us