Tips & Tricks : Installing PHP Xdebug on openSUSE from existing repo

While using PhpStorm I tried to use remote PHP interpreter on my dev virtual machine. As I’m big openSUSE fan and user I have openSUSE Leap 42.1 as my development machine. Unfortunately there is no Xdebug for PHP distributed by default.

However, there is repository available, so it’s easy to add this missing component to my system.

Once renamed you can import repository information and install php5-xdebug using OCICLI.

dev-lnx-01:~ # OCICLI file:///root/php5-xdebug.ymp
If you continue, the following repositories will be subscribed:
* http://download.opensuse.org/repositories/server:/php:/extensions/openSUSE_Leap_42.1/
* http://download.opensuse.org/update/leap/42.1/oss/
If you continue, the following software packages will be installed:
* php5-xdebug
Continue? y/N
y
Adding Repositories...

Now you will have php5-xdebug installed and PhpStorm will be happy.

Last thing to do on server side is to configure Xdebug in /etc/php5/conf.d/xdebug.ini.

You might want to adjust some parameters like:

xdebug.remote_connect_back = 1

xdebug.remote_enable = 1

Hope that helps with PhpStorm and php5-xdebug installation on openSUSE Leap 42.1.