first download the Zend Debugger V5.2 from http://download.youkuaiyun.com/source/1712979 or zend web site.
below is the readme content of the Zend Debugger:
1. Extract the Zend Debugger package.
2. Locate the ZendDebugger.so (Unix) or ZendDebugger.dll (Windows) file in the directory which
corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x, 5.3.x).
2. Add the following line to your php.ini file:
Linux and Mac OS X: zend_extension=<full_path_to_ZendDebugger.so>
Windows: zend_extension_ts=<full_path_to_ZendDebugger.dll>
Windows non-thread safe: zend_extension=<full_path_to_ZendDebugger.dll>
3. Add the following lines to your php.ini file:
zend_debugger.allow_hosts=<host_ip_addresses>
zend_debugger.expose_remotely=always
(*) hopst_ip_addresses are the IPs of the hosts which will be allowed to initiate debug sessions
4. Copy the dummy.php file to your document root directory.
5. Restart your Web server.
for example for my ubuntu9.04 Desktop:
if you don't install LAMP, please refer to my last blog:
http://blog.youkuaiyun.com/dragonfly12/archive/2009/10/02/4627986.aspx
List the folder content of ~/Desktop/ZendDebugger-v5.2-linux-glibc23-i386:
root@xjl-desktop:~/Desktop/ZendDebugger-v5.2-linux-glibc23-i386# ls
4_3_x_comp 5_0_x_comp 5_2_x_comp dummy.php md5
4_4_x_comp 5_1_x_comp 5_3_x_comp Inventory.xml README
Due to using PHP/5.2.6-3ubuntu4.2 I select the 5_2_x_comp/ZendDebugger.so file to copy it to the /usr/local/Zend directory where I place Zend programming environment.
Then add the following lines to your php.ini file which is in the /etc/php5/apache2/php.ini:
zend_extension=/usr/local/Zend/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always
Copy the dummy.php file to the directory /var/www.
5. Restart your Web server apache:
root@xjl-desktop:~#sudo /etc/init.d/apache2 restart
test:
input <?php echo phpinfo(); ?> into index.php in the /var/www and input http://127.0.0.1/index.php in the browser.