How to configure XDebug in Ubuntu

In complex and large scale php application we need to debug the php code to easier life. Xdebug is a PHP extension which help us to debug applications.

This tutorial will shows how to configure Xdebug extension with NetBeans IDE in Ubuntu Linux.

I assume that in your ubuntu system, you have already installed php and configured LAMPP [ LINUX,Apache,MySQL,PHP]. so i start direct from configure the xdebug
This tutorial is tested on following configuration.

Apache 2.0
PHP Version 5.3.8
Netbeans 7.2.1
Ubuntu 12.04 Continue reading “How to configure XDebug in Ubuntu”

Operate XAMPP in Ubuntu using command line

In Windows OS XAMPP provide us a simple GUI to operate it. In Ubuntu you can use Terminal to operate xampp server . Press Ctrl+Alt+T button from keyboard to start Terminal window.

You can operate XAMPP server in ubuntu using following command.
Syntax: sudo /opt/lampp/lampp <action>

For example:

to start XAMPP server write following command in terminal
sudo /opt/lampp/lampp start

start xampp in ubuntu
start xampp in ubuntu

to stop XAMPP server write following command in terminal
sudo /opt/lampp/lampp stop

Continue reading “Operate XAMPP in Ubuntu using command line”