Sunday, June 30, 2013

Using Zend Debugger with PHP 5.3 installed on Debian 6

1. This entry is followed from this youtube post:-
http://www.youtube.com/watch?v=1kwQFzwSifE

The same is described in text:-

2. Zend studio web debugger  can be downloaded from this link
http://www.zend.com/en/products/studio/downloads

3. click the linux tab and copy the tar file to a folder in your linux system. untar the contents

4. create a folder zenddebugger in /usr/lib
5. copy the contents of the untarred folder to zenddebugger folder created  in /usr/lib in your linux system.

6. nano -w /etc/apache2/conf.d/debugger.ini  //creates a debugger.ini file
//write the following lines in the file:-

zend_extension=/usr/lib/zenddebugger/5_3_x_comp/ZendDebugger.so

zend_debugger.allow_hosts=192.168.1.0/24 //depends on the hosts which you want to allow

zend_debugger.expose_remotely=always

7. copy /usr/lib/zenddebugger/dummy.php to the directory in webserver where you have the code to debug. if your files are /var/www, then copy dummy.php there.

8. Restart apache /etc/init.d/apache2 restart

9. write a php script to show phpinfo( ) and verify whether zend debugger line is shown and an entry for zend debugger exists in the phpinfo( ) page.

Next post on integrating this with eclipse IDE..




No comments: