Introduction
This is the forth article of a series of blog post called the WIMPinator Chronicles that describe how to setup a PHP development environment for Windows 7 and IIS 7.5.
So far we covered how to install a Wordpress blog and all its dependencies using the WPI (Web Platform Installer). Then we added additional features and extensions to the PHP deployment on Windows for IIS. Finally I explained how to get PEAR setup and how to download and deploy the PHPUnit unit testing framework using PEAR.
In this part I am going to demonstrate how to install the PHP edition of Eclipse Galileo called PDT PHP Development Tools.
The Series
- Getting a Wordpress blog installed in a jiffy on Windows 7 using the Web Platform Installer
- Adding additional features to PHP
- Installing PEAR and PHPUnit
- Installing Eclipse PDT
- Configuring Eclipse PDT to work with Subversion source control
- Configuring Eclipse to work with Ant build tasks
- Creating a new IIS 7.5 fast CGI web site
- Setting up XDebug with Eclipse and IIS 7.5
- Setting up the Zend Debugger with Eclipse and IIS 7.5
- Configuring Ruby and Watir
- Moving a Wordpress blog from GoDaddy shared hosting to my local debugging system.
Installing PDT
PDT stands for PHP Development Tools. PDT is built on top of the Eclipse IDE, which itself is written in Java. Zend is the company behind PDT and provides tools, frameworks and debuggers for PHP. The process of installing PDT on Windows 7 is straight forward. First you need to install the Java SDK or Runtime and then download and extract Eclipse PDT.
Pitfall
The only pitfall you can run into is that your Java Runtime is 64-bit and you downloaded the 32-bit PDT version or vice versa. The error message you get when you try to start Eclipse would be similar to this:
Figure 1: Be aware to match the Java Runtime CPU architecture with the one Eclipse is using
Install Java
To get started, open your favorite search engine and search for java SDK download.
Figure 2: Google for Java SDK Download
Follow the Java SE Download link.
Figure 3: Follow the Java SE Download link
This will get you to Oracle’s page. Leave the default platform selection, if you are planning to run the 32-bit version of the Java virtual machine.
Figure 4: Java is now Oracle
Optional: Change the platform to Windows x64, if you prefer the 64-bit JVM.
Figure 5: Select Windows 64-bit, if you are planning on using Eclipse 64-bit
Click the red download button.
Figure 6: Ignore this dialog. It is optional
Figure 7: Finally click on the file called jdk-6u17-javafx-1.2-windows-i586.exe
Figure 8: Click Run to download and launch the Java SDK installer
Figure 9: The file is downloading
Figure 10: Finally the installer is launching. Accept the License Agreement
Figure 11: Select Next
Figure 12: Select the destination folder or leave the default

Figure 13: Extracting files
Figure 14: The install is complete. Click the Finish button
Unfortunately the selected file also installs the JavaFX package. Click next.
Figure 15: Click Next to install JavaFX
Figure 16: Again, accept the license agreement
Figure 17: Select the installation folder
Figure 18: Ready to install JavaFX
Figure 19: Installing JavaFX…
At the end of the install the installer tries to open a the JavaFX web page. Click No, if you are interested in seeing it.
Figure 20: Click No to get a look at the JavaFX web site
Figure 21: The JavaFX Web Site
Finally the Java SDK is installed and we are ready to download and launch Eclipse PDT.

Figure 22: Conclude the Java SDK install
Install Eclipse PDT
Once we have Java installed, we are ready for Eclipse PDT. Just Google for “Eclipse PDT download”.
Figure 23: Google Eclipse PDT download
Follow the link to http://www.eclipse.org/pdt
Figure 24: Go to Eclipse.org
Click on the link to PDT and Zend Server Community Edition.
Figure 25: Now to to Zend’s web site to download PDT
Click on the Windows link under “Download Eclipse PDT All-In-One”.
Figure 26: Download PDT All-In-One for Windows
Save the zip file zend-eclipse-php-galileo-SR1-win32-x86.zip in your download folder.
Figure 27: Save the file in your downloads folder

Figure 28: Picking the download folder
Figure 29: Downloading the 171 MB file
Finally we have downloaded the zip file. The deployment is now very easy.
Figure 30: The downloaded zip file
Open the downloaded zip file and extract it to your local c:\program files(x86) folder
Figure 31: The zip file contains a folder called eclipse
Figure 32: Extracting the contents of the zip file into your program files folder
Figure 33: Extraction progress
Figure 34: Extracted Eclipse files
To start Eclipse you can just launch the eclipse.exe file from C:\Program Files(x86)\Eclipse, but we will pin it first to the Taskbar using the right mouse click “Pin To Taskbar” command.
Figure 35: Pin Eclipse.exe to taskbar
Figure 36: Eclipse PDT is now accessible from the taskbar
Here is the big moment: Click on the Eclipse PDT icon to launch Eclipse for the first time. You will be welcomed by the following security warning dialog. Un-check the “Always ask before opening this file” checkbox to avoid this dialog in the future. Then click Run.
Figure 37: Security Warning
Figure 38: Eclipse splash screen
When you run Eclipse for the first time you need to provide a folder for the workspace. This is where your configuration and project files will be. Click the check box, if you don’t like to be asked again.
Figure 39: Pick a workspace
We are almost there, but we also need to add some firewall exceptions. If possible restrict the firewall exception to your private network like your home or workplace by clicking the appropriate checkbox.
Figure 40: Punch a hole into the firewall. Keep it secure by restricting it to private networks if possible
Hello Eclipse PDT!
Figure 41: Eclipse PDT is showing us the welcome screen
Close the welcome screen by clicking on the white x next to the Welcome title of the Welcome tab. DONE!
Figure 42: The Eclipse IDE work space
Ausblick
The basic Eclipse PDT is now running. The next two articles are going to integrate Eclipse with Subversion source control and ANT build tasks. Stay tuned.