This forum is no longer active. Please post your questions to our new community site

How to install XDebug under VMWare Ubuntu LAMP appliance?

Subscribe to How to install XDebug under VMWare Ubuntu LAMP appliance? 10 post(s), 3 voice(s)

 
Avatar dalibor983 6 post(s)

I tried to install xdebug with:
“pecl install xdebug”
but I got errors.

Than I found this tutorial on web address
“http://www.niccolofavari.com/configure-xdebug-with-bitnami-php-stacks-on-linux-ubuntu” but command
“sudo apt-get install php5-dev php-pear”
did not work.

Is there any way to install xdebug on this appliance?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Have you tried to update the repository before isntalling the packages? Which is the exact error?

$ sudo apt-get update
$ sudo apt-get install php5-dev php-pear

Cheers

 
Avatar dalibor983 6 post(s)

Thanks man. That is it.

 
Avatar dalibor983 6 post(s)

There is another problem. After “sudo apt-get install php5-dev php-pear” command finished. Command “pecl install xdebug” build xdebug.so for php 5.3 but vmware lamp appliance has php version 5.2.13. What can I do now?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Sorry but I’m confused. You are installing php packages in your system only to copy the xdebug extension. Try to install directly from the pecl that is included in LAMPStack but maybe you have to install make, gcc, autoconf and other compilation tools:

$ cd installation_directory
$ php/bin/pecl install xdebug

I hope it helps

 
Avatar dalibor983 6 post(s)

Thanks. Now it works.

 
Avatar dalibor983 6 post(s)

You should build php with XSL support.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Thanks for your suggestion. We will add it in our TODO list.

 
Avatar manik005 1 post

can you guide me to configure xdebug in latest version of bitnami ???

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

XDebug extension is included in the latest LAMP, MAMP and WAMP Stacks. You only have to uncoment the following lines in the your_installdir/php/etc/php.ini file:


;[XDebug]                                                                                             
;; Only Zend OR (!) XDebug                                                                            
;zend_extension_ts="/your_installdir/php/lib/php/extensions/xdebug.so"
;xdebug.remote_enable=true                                                                            
;xdebug.remote_host=127.0.0.1                                                                         
;xdebug.remote_port=9000                                                                              
;xdebug.remote_handler=dbgp                                                                           
;xdebug.profiler_enable=1                                                                             
;xdebug.profiler_output_dir=/tmp