You are here: User Guide > Tasks > Debugging Files and Applications > Setting your Environment to be an Allowed Host

Setting your Environment to be an Allowed Host

This procedure describes how to ensure the machine on which your Zend Studio is installed will be an Allowed Host for initiating your Debug and Tunneling session on the remote server.

 

The steps you need to follow will depend on whether you have Zend Server, or the standalone Zend Debugger installed on your server:

If Zend Server is Installed

 

 

Instructions on how to complete a procedure

To set your environment to be an allowed host if Zend Server is installed:

  1. Open your Zend Server GUI.

Note:

This can be done from within Zend Studio by selecting the server on which you have configured your Zend Server integration from the drop-down list next to the Zend Server icon on the toolbar .

  1. Go to the Server Setup | Debugger tab.

Allowed Hosts for Tunneling

  1. Ensure the address of your Zend Studio is included in the Allowed Hosts sections.
    To add an address to the list:

  1. Under the Allowed Zend Studio Clients for Debugging category, enter the IP of the machine on which your Zend Studio is installed

  2. Click Add.
    The IP Address is added to the Allowed Hosts list.

  1. Ensure your Studio's IP address is not in the Denied Hosts list.
    If it is, click Remove next to the required address to remove it from the list.

  2. Click the button to apply your settings.

 

If only the standalone Zend Debugger is installed on your server:

 

 

Instructions on how to complete a procedure

To configure your debugger to allow your Zend Studio to debug:

  1. Open your php.ini file.

  2. Edit the zend_debugger.allow_hosts and zend_debugger.allow_tunnel (if necessary) parameters to include the IP address of the machine on which your Zend Studio is installed.
    e.g. zend_debugger.allow_hosts=127.0.0.1/32
    zend_debugger.allow_tunnel=127.0.0.1/32

  3. Ensure the address is not in your zend_debugger.deny_hosts parameter list.

  4. Set the Debug Server to expose itself to remote clients by setting the zend_debugger.expose_remotely parameter to Always.
    (e.g. zend_debugger.expose_remotely=always).

  5. Save the file.

  6. Restart your Web server for the settings to take effect.

 

 

 

Related Links:

Setting Up Remote Debugging

Ensuring the Placement of dummy.php

Debugging a PHP Web Page

Setting Up Tunneling

 

 

©1999-2012 Zend Technologies LTD. All rights reserved.