How to setup a LAMP environment with xdebug under ubuntu  PDF Print E-mail
Tag it:
Delicious
Furl it!
Digg
NewsVine
Reddit
YahooMyWeb
Technorati
Articles Reviews Linux
Written by wdlog.com   
Saturday, 20 September 2008

 First of all, we need to setup the lamp (linux+apache+mysql+php) environment.

So, fire up the terminal and type:

sudo apt-get update
sudo apt-get upgrade


 If you don’t know which version of Ubuntu you are running, just type:

cat /etc/issue

If you are using ubuntu 6.06 you just need to run.

sudo apt-get install apache2 php5-mysql libapache2-mod-php5 mysql-server

If you are under anything more recent that 6.06

sudo tasksel install lamp-server

After this we need to install xdebug.

sudo apt-get install php5-xdebug

To activate and configure xdebug, we need to edit php.ini

nano /etc/php5/apache2/php.ini

In the end of the file, just add

xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

If you are developing from another computer, we need to specify that ip address under xdebug.remote_host.

We restart the server

sudo /etc/init.d/apache2 restart

And we are done.

Article source


User reviews

There are no user reviews for this item.

Add new review




Powered by jReviews

 
Next >