The Wayback Machine - https://web.archive.org/web/20171031200805/http://eclipse.sys-con.com:80/node/1006742

Welcome!

Eclipse Authors: Pat Romanski, Elizabeth White, Liz McMillan, David H Deans, JP Morgenthal

Related Topics: Eclipse, PHP

Eclipse: Tutorial

Configuring the PHP Version of Eclipse 3.5 RC4

Eclipse, WampServer, & Windows

Step 1: Download and install WampServer

Download the latest version of WAMP from here.

As of this writing the current version is 2.0h dated 04/16/09 and file you will download is called WampServer2.0h.exe

Run the file WampServer2.0h.exe

You will be asked to agree to the software license, approve the choice of directory, select the default browser, and decide if you want a desktop and/or quick launch icon. For the directory the default is c:\wamp but you may change to whatever you like. In later steps in this document it will be assumed you selected c:\wamp so change this to your choice of directory.

Step 2: Test the WampServer installation

Test the installation by running WampServer. An icon will appear in your tool tray. Click on it and you will see:

Select Localhost and your browser should start and the home page for WampServer should appear. If the browser reports that the page cannot be found select "Start All Services" and then refresh the page. If this does not work select "Put Online". If this doesn't work then cry and then check your firewall settings.

Step 3: Download and Install Eclipse for PHP

Download Eclipse for PHP. At the time of this writing we are a week away from the final version of 3.5. I used 3.5 Release Candidate 4 for this document.

Eclipse is packaged as a zip file so just unzip it into the folder of your choice. One possibility is in a folder within the WampServer installation. Since Eclipse is already in a folder called Eclipse I unzipped mine to c:\wamp and ended up with the following:

Step 4: Download and install the Zend PHP debugger plug-in for Eclipse

Download the Zend debugger file at this link:

Unzip this file to the same folder you unzipped Eclipse to. In my case I unzipped this file to C:\wamp

I have also installed XDebug but there is something not quite right. I suspect I have not found the right setting to tweak. As far as I can tell you can only have one of the debuggers running at a time. If you know how to get XDebug to work and if you know how to make both debuggers available at the same time then please let me know.

Step 5: Configure PHP to use the Zend Debugger in WAMP

On the Wamp menu select PHP -> php.ini

This will open the php.ini file for editing. Do not directly edit the php.ini file you may find with Windows Explorer. By going thru the menu the file you edit will be copied to its proper destination inside the Apache web server.

Add the following to the php.ini file right after the [Tidy] section:

[Tidy]
; The path to a default tidy configuration file to use when using tidy
;tidy.default_config = /usr/local/lib/php/default.tcfg
; Should tidy clean and repair output automatically?
; WARNING: Do not use this option if you are generating non-html content
; such as dynamic images
tidy.clean_output = Off
[Debugger]
zend_extension_ts=C:/wamp/eclipse/plugins
/org.zend.php.debug.debugger.win32.x86_5.2.15.v20081217
/resources/php5/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1, 192.168.0.2
zend_debugger.expose_remotely=always

The path after zend_extension_ts must be on one line.

The IP number 192.168.0.2 is the one assigned by my router. You must have your router assigned address.

From the Wamp menu Restart All Services and the select Localhost.

From this page select the link titled phpinfo() found under the title Tools.

This will display the PHP configuration page and there should be a section entitled Zend Debugger as shown here:

Step 6: Configure Eclipse for WampServer and the Zend Debugger

Start Eclipse and select a workspace. You will need to know the physical location of the workspace so make a note of it. In preparing this document my workspace is in:

C:\Users\neon\workspacephp

For you dinosaurs still using XP the equivalent location would be:

C:\Documents and Settings\neon\workspacephp

Remember that when there are spaces in a path you should enter the path when required with quotation marks:

"C:\Documents and Settings\neon\workspacephp"

To configure settings that will apply to all projects in this workspace go to the Windows->Preferences menu.

Open the PHP item in the tree on the left. There are two items here that need to be configured.

The first item is PHP Executables. Selecting this will display a number of versions of PHP that are included with Eclipse.

We want to use the version of PHP included with WampServer so we will add a new executable. Select Add.., give it a name, and browse to the php.exe inside the WampServer installation.

Leave out the PHP ini file and make sure the PHP debugger is set to Zend Debugger.

Make this new entry the default version of PHP.

Now we need to set up the Server.

We will edit the Default PHP Web Server but you could just as easily create a new server and set it as the default.

When you select the Default PHP Web Server and click on Edit you will see:

The only change to make is to add /workspace after http://localhost

The items on the tab for Path Mapping are left blank.

Click OK here and on the Preferences dialog and we are just minutes away from testing a PHP page.

More Stories By Ken Fogel

In 1980 I bought for myself the most wonderful toy of the day, the Apple ][+. Obsession followed quickly and by 1983 I was writing software for small and medium sized businesses in Montreal for both the Apple and the IBM PC under the company name Omnibus Systems. In the evenings I taught continuing education courses that demystified the computer to the first generation of workers who found themselves with their typewriter on the scrap heap and a PC with WordStar taking its place.

In 1990 I was invited to join the faculty at Dawson College in the Computer Science Technology program. When I joined the program the primary language was COBOL and my responsibility was to teach small systems languages such as BASIC and C/C++.

Today I am now the chairperson and program coordinator of the Computer Science Technology program at Dawson. The program's primary language is Java and the focus is on enterprise programming.

I like to write about the every day problems my students and I face in using various languages and platforms to get the job done. And from time to time I stray from the path and write about what I plan to do, what I actually get around to doing, and what I imagine I am doing.

@omniprof

@ThingsExpo Stories
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
Recently, REAN Cloud built a digital concierge for a North Carolina hospital that had observed that most patient call button questions were repetitive. In addition, the paper-based process used to measure patient health metrics was laborious, not in real-time and sometimes error-prone. In their session at 21st Cloud Expo, Sean Finnerty, Executive Director, Practice Lead, Health Care & Life Science at REAN Cloud, and Dr. S.P.T. Krishnan, Principal Architect at REAN Cloud, will discuss how they bu...
Digital Transformation (DX) is not a "one-size-fits all" strategy. Each organization needs to develop its own unique, long-term DX plan. It must do so by realizing that we now live in a data-driven age, and that technologies such as Cloud Computing, Big Data, the IoT, Cognitive Computing, and Blockchain are only tools. In her general session at 21st Cloud Expo, Rebecca Wanta will explain how the strategy must focus on DX and include a commitment from top management to create great IT jobs, monit...
SYS-CON Events announced today that Opsani to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. Opsani is creating the next generation of automated continuous deployment tools designed specifically for containers. How is continuous deployment different from continuous integration and continuous delivery? CI/CD tools provide build and test. Continuous Deployment is the means by which...
Nordstrom is transforming the way that they do business and the cloud is the key to enabling speed and hyper personalized customer experiences. In his session at 21st Cloud Expo, Ken Schow, VP of Engineering at Nordstrom, will discuss some of the key learnings and common pitfalls of large enterprises moving to the cloud. This includes strategies around choosing a cloud provider(s), architecture, and lessons learned. In addition, he’ll go over some of the best practices for structured team migrat...
SYS-CON Events announced today that Opsani will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Opsani is the leading provider of deployment automation systems for running and scaling traditional enterprise applications on container infrastructure.
In his Opening Keynote at 21st Cloud Expo, John Considine, General Manager of IBM Cloud Infrastructure, will lead you through the exciting evolution of the cloud. He'll look at this major disruption from the perspective of technology, business models, and what this means for enterprises of all sizes. John Considine is General Manager of Cloud Infrastructure Services at IBM. In that role he is responsible for leading IBM’s public cloud infrastructure including strategy, development, and offering ...
22nd International Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, and co-located with the 1st DXWorld Expo will feature technical sessions from a rock star conference faculty and the leading industry players in the world. Cloud computing is now being embraced by a majority of enterprises of all sizes. Yesterday's debate about public vs. private has transformed into the reality of hybrid cloud: a recent survey shows that 74% of enterprises have a hybrid cloud ...
@DevOpsSummit at Cloud Expo, taking place June 5-7, 2018, at the Javits Center in New York City, NY, is co-located with 22nd Cloud Expo | 1st DXWorld Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait...
SYS-CON Events announced today that Google Cloud has been named “Keynote Sponsor” of SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Companies come to Google Cloud to transform their businesses. Google Cloud’s comprehensive portfolio – from infrastructure to apps to devices – helps enterprises innovate faster, scale smarter, stay secure, and do more with data than ever before.
Cloud Expo | DXWorld Expo have announced the conference tracks for Cloud Expo 2018. Cloud Expo will be held June 5-7, 2018, at the Javits Center in New York City, and November 6-8, 2018, at the Santa Clara Convention Center, Santa Clara, CA. Digital Transformation (DX) is a major focus with the introduction of DX Expo within the program. Successful transformation requires a laser focus on being data-driven and on using all the tools available that enable transformation if they plan to survive ov...
SYS-CON Events announced today that Cedexis will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 - Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Cedexis is the leader in data-driven enterprise global traffic management. Whether optimizing traffic through datacenters, clouds, CDNs, or any combination, Cedexis solutions drive quality and cost-effectiveness. For more information, please visit https://www.cedexis.com.
Organizations do not need a Big Data strategy; they need a business strategy that incorporates Big Data. Most organizations lack a road map for using Big Data to optimize key business processes, deliver a differentiated customer experience, or uncover new business opportunities. They do not understand what’s possible with respect to integrating Big Data into the business model.
SYS-CON Events announced today that CA Technologies has been named “Platinum Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY, and the 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business – from apparel to energy – is being rewritten by software. From ...
SYS-CON Events announced today that Vivint to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. As a leading smart home technology provider, Vivint offers home security, energy management, home automation, local cloud storage, and high-speed Internet solutions to more than one million customers throughout the United States and Canada. The end result is a smart home solution that sav...
SYS-CON Events announced today that T-Mobile exhibited at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on qua...
In his session at 21st Cloud Expo, Ikuo Nakagawa, Co-Founder and Board Member at Transparent Cloud Computing Consortium, will introduce the big change in economic models with leading-edge business cases for digitalization of transactions and discuss the future of monetary economy in the digital era. Nowadays, "digital innovation" is a big wave of business transformation based on digital technologies. IoT, Big Data, AI, FinTech and various leading-edge technologies are key components of such bus...
SYS-CON Events announced today that Nirmata will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Nirmata provides a comprehensive platform, for deploying, operating, and optimizing containerized applications across clouds, powered by Kubernetes. Nirmata empowers enterprise DevOps teams by fully automating the complex operations and management of application containers and its underlying ...
SYS-CON Events announced today that Nirmata to exhibit at SYS-CON's 21st Cloud Expo, which will take place on October 31 through November 2nd 2017 at the Santa Clara Convention Center in Santa Clara, California. Nirmata provides comprehensive policy-based automation for deploying, operating, and optimizing containerized applications across clouds, via easy-to-use, intuitive interfaces. Nirmata empowers enterprise DevOps teams by fully automating the complex operations and management of applicati...
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, will discuss how from store operations...