Zend Debugger Installation Errors

An error occurred while collecting items to be installed
session context was:(profile=PlatformProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.zend.php.debug.debugger,5.3.18.v20110322
No repository found containing: osgi.bundle,org.zend.php.debug.debugger.linux.x86,5.3.18.v20110322
No repository found containing: org.eclipse.update.feature,org.zend.php.debug_feature,5.3.18.v20110322

You may have encountered this error while trying to install a debugger in Eclipse, here Zend Debugger. There are two options available.
Zend Debugger
So, if you are in Ubuntu Linux, you can resolve the issue

$ sudo apt-get install php5-xdebug


$ sudo apt-get install zend-framework

By installing the zend-framework, the debugger will also be installed. So there is no need to manually install the debugger from the Help>Install New Software option. Note that xdebug is another debugger which can also help you in debugging php applications in Eclipse


PHP in Eclipse Error: The session could not be started.

If you are trying to run PHP in Eclipse, you may encounter the following error

The session could not be started. In order to generate debug information, please make sure that the debugger is properly configured as a php.ini directive.

This is because you need to install a debugger in your system. There are two options available.

  1. Xdebug
  2. Zend Debugger

So, if you are in Ubuntu Linux, you can resolve the issue

$ sudo apt-get install php5-xdebug


$ sudo apt-get install zend-framework


Test Run WordPress Development Environment in Eclipse

We assume that you have successfully imported wordpress files into Eclipse. Now the next step is to test run the changes you make in wordpress right inside Eclipse. For this we must be able to run the wordpress from the localhost

Running wordpress from the localhost

Assume that your wordpress workspace in eclipse is /home/users/workspace/wordpress
Now go to your htdocs directory /usr/local/apache2/htdocs/ It may be different for you.

Create a symbolic link to wordpress workspace

$ cd /usr/local/apache2/htdocs/
$ sudo ln -s /home/users/workspace/wordpress/ wordpress

Now you can access the wordpress from localhost like ‘http://localhost/wordpress‘. Try accessing this URL from the browser. If everything is fine, we can continue with the following steps.

  1. Go to Eclipse, with the wordpress workspace.
  2. Go to Run->Run Configurations
  3. Double Click PHP Web Page (Or Right click PHP web page and click New)
  4. Give Name “WordPress¬† Configuration” in the Name input box
  5. For PHP Web Server, press configure
  6. In the Name section, Enter WordPress Localhost server
  7. In the URL section, enter http://localhost/
  8. Press Ok
  9. And now you are back to the Server Configuration menu.
  10. In the File section Enter /wordpress/index.php
  11. Press Apply
  12. The Savings will be saved.
  13. Press Run.

And now you can see that the WordPress runs right inside your eclipse. You can experiment going through various links

Every time, you open/work with  eclipse, you can follow either of the following steps

  1. Click Run->Wordpress Configuration
  2. Go to Run->Run Configuration->PHP Web Page->Wordpress Configuration and Press Run

WordPress Plugin/Theme Development using Eclipse

For WordPress plugin or theme development using Eclipse IDE, you can make use of the following procedure

First and foremost, you must install wordpress in localhost. Let’s suppose you have successfully installed wordpress.

WordPress Project creation in Eclipse

  1. You must install PHP plugin in Eclipse. Now after successfully installing PHP in eclipse, you will see an option to create a PHP project (in File->New)
  2. Go to File->New->PHP Project.
  3. Enter the Project name as “wordpress” (or choose any name of your choice. For the ease of our tutorial, we will continue with the name wordpress)
  4. Press finish. The project wordpress will be successfully created in your workspace. Note down the path: /home/users/workspace/wordpress (This path may be different for you)
  5. Now let’s import the wordpress files (which is under the directory /usr/local/apache2/htdocs/wordpress as given in the post here)
  6. Go to File->Import->General->File System
  7. Press Next
  8. In the From input box, browse the path (/usr/local/apache2/htdocs/wordpress) or copy that value.
  9. Now you have to tick mark the files, you want to import.
  10. Tick mark the whole wordpress directory and all the files will be imported.
  11. And now you have to specify the Into folder. This is nothing but the wordpress workspace you have just created (home/users/workspace/wordpress). Choose the folder and press Ok.
  12. Press Finish
  13. All the wordpress files have been successfully imported.
  14. Now you can work with wordpress theme or plugin development

Now you would also like to test run a wordpress development environment in Eclipse.