Our blog

 

Ubuntu XAMPP XDebug Install

1] Download the latest version of ( XAMPP For Linux ) here
2] Install it. To install lampp, extract and put in /opt directory. Remember to extract it as ROOT.
3] Download Development package from same site.
4] Extract it, copy and paste “include” folder from Development package to /opt/lampp directory. ( This package would use for compiling XDebug source )
5] Run command;  sudo /opt/lampp/bin/pecl update-channels. this would update the pecl channels database at your local pc.
6] Run command sudo /opt/lampp/bin/pecl install Xdebug. And wait for finishing the process.
7] Now xdebug.so file has been created in /opt/lampp/lib/php/extensions/ directory.
8] Now Open the file php.ini and add the line zend_extension=”/opt/lampp/lib/php/extensions/path_to_xdebug.so”. at the end of file.
9] Restart Lampp & Check enabled or not using phpinfo();

TESTING INSTALLATION::
======================

1] Ensure LAMP is started/running (i.e apache, mysql)
2] Open your favorite browser i.e FireFox
3] Type http://localhost (if all is well this should take you to the Xampp homepage and ask you to select your prefered language!. This ensures your htdocs web folder is reachable and web server is working fine.)
4] Type http://localhost/phpmyadmin (if all is well this should take you to the mysql admin homepage!. This ensures your mysql database is configured correctly and ready is ready to go!)

NOTE:
=====
If the installation is not done as root, you may experience few security issues while testing your installation:

- http://localhost – may throw errors relating to permissions while trying to open files notably ‘lang.tmp.php’
- http://localhost/phpmyadmin – may throw errors relating to not been able to read ‘config.php’ and also connection to mysql database may fail.

Solution:
=========
Re-Install lampp as root to eliminate such problems.

Thanks to: http://www.webhelp2u.com/article/install-xdebug-on-lampp

More Reading:

One Comments

[...] Ubuntu XAMPP XDebug Install | Edmonds Commerce Blog [...]

 

 

Leave a Reply