Loading...
 
Skip to main content

History: Installing Xdebug on Ubuntu

Source of version: 4 (current)

Copy to clipboard
Follow these simple steps to install Xdebug on Ubuntu 10.4. These instruction were taken from [http://scottfaisal.com/installing-xdebug-on-ubuntu-10-04/].

# Install Xdebug:
+ {CODE(colors=bash wrap=1)}sudo apt-get install php5-xdebug{CODE}
+
# Open the xdebug.ini file using the following command:
+ {CODE(colors=bash wrap=1)}sudo gedit /etc/php5/apache2/conf.d/xdebug.ini{CODE}
+
# Edit the xdebug.ini file so that it has the following:
+ {CODE(colors=ini wrap=1)}; configuration for php xdebug module
zend_extension="/usr/lib/php5/20090626/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
{CODE}
+
# Restart Apahe using the following command:
+ {CODE(colors=bash wrap=1)}sudo /etc/init.d/apache2 restart{CODE}
+
# If successful, you will see Xdebug copyright information when you open phpinfo()

Show PHP error messages