O'Reilly logo

PHP Application Development with NetBeans Beginner's Guide by M A Hossain Tonu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — installing XDebug on Ubuntu

From the console, run the following commands:

  1. Install XDebug using the following command:
    sudo apt-get install php5-xdebug
    
    
  2. Update xdebug.ini using the gedit (in-built) editor.
    sudo gedit /etc/php5/apache2/conf.d/xdebug.ini
    
    
  3. Change xdebug.ini so that it looks as follows:
    zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
    xdebug.remote_enable=1
    xdebug.remote_handler=dbgp
    xdebug.remote_mode=req
    xdebug.remote_host=127.0.0.1
    xdebug.remote_port=9000
    
    

    Note that the first line of these configurations may be available inside xdebug.ini, and you may have to add the remaining lines.

  4. Restart Apache.
    sudo service apache2 restart
    
    
  5. Refresh the phpinfo() page, and find the latest XDebug installed with the version ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required