/ *
Reposted please keep
Title: Building an Eclipse-based PHP development environment under Windows
Author: z33
From: http://www.itroot.org
* /
Before configuring Eclipse, you first need an underlying environment of Apache PHP.
You can install WAMPP or PHP HOME, which are all integrated installations, more convenient, download address as follows:
Wampp2.2:
http://prdownloads.sourceforge.net/xampp/w....2.zip?download
PHP HOME:
http://prdownloads.sourceforge.net/phphome....2.zip?download
Suggested Wampp2.2, integrated apache, mysql, perl, php. And unpacking, I will use it very convenient.
Let's install Wamp2.2 as an example, step by step, how to configure the Eclipse-based PHP development environment.
First, installation configuration Wamp2.2
· Configuring WAMPP
In this example, we decompressed the downloaded wampp-2.2.zip, under C: / Wampp2, and the comrades can follow the way I wrote.
The decompressed directory structure should be shown below:
Wampp contains the following:
Apache 2.0.46
Mysql 4.0.13
PHP 4.3.2 PEAR
Perl 5.8.0
MOD_PHP 4.3.2
MOD_PERL 1.99_10 Dev
MOD_SSL 2.0.46
MOD_AUTH_MYSQL (ONLY EXPERIMENTAL)
OpenSSL 0.9.7B
And it is already configured, there is not much content to be modified,
The first one should change the Apache's DocumentRoot, which is the root directory of the web service.
Here you set it to f: / workspace, wait for the work directory for Eclipse to set it to this location.
Others can be configured separately according to their needs.
· Install Apache for system service
This example installs Apache to Service, enter the directory c: / wampp2 / apache, double-click Apache_installService.bat to install Apache into the system's service.
Open the "Management Tool" in the Control Panel, find "service", you will see some of the apache2,
Double-click, open "Apache2 Properties", set the "Start Type" to "Manual", which saves system resources.
Accelerating the speed of the boot is my personal habit, you can use it without remember, boot automatically starting apache.
Now Apache has not started, temporarily do not start it.
Second, download and install Eclipse
download link:
http://download.eclipse.org/download.org/download./index.php
To select the Eclipse 2.1.x version of the download, Eclipse requires JRE support,
So if you haven't installed JRE on the machine, you will download it, http://java.sun.com has JRE downloads.
Download the Eclipse's compressed package directly to decompress it,
I decompressed it to C: / Eclipse, then make this directory, double-click Eclipse.exe,
If you start prompting JRE support, you don't have JRE, or don't find the JRE path. In this way, you only need to right click on "My Computer", select "Properties", in "Advance" Variable "
Find the "path", in the back, add the JRE path plus, if you are afraid, copy the jre to C: / Eclipse directly.
Now Eclipse can run normally, OK, turn off it, continue the next step, install PHP plug-in.
Third, download and install PHP in the plugin in Eclipse
Address: http://sourceforge.net/project/showfiles.php? Group_id = 57621 & package_id = 53190
After the download is complete, decompressed, then copy the unfluited folder to the plugins directory of the Eclipse home directory.
To this step, even if the PHP plugin in Eclipse is OK, we can create a new PHP project in Eclipse, and support the php syntax to brighten, open and take a look.
New PHP project:
Step 1: File -> New -> Project, see, there is php project.
Step 2: Set the project name, the following sets of project catalogs,
The directory set by the Apache set on the Apache set above,
Can be accessed through your browser to facilitate debugging.
For example, the path shown below, the browser corresponds to http: // localhost / iTrootcms /
Then Finish, it is created.
Create a new file, write a few lines of code, see how? Good effect.
But this is still not enough, we need to continue to configure more content.
Fourth, configure a PHP plugin
Under the Windows menu of Eclipse, choose preferences, then find PHP on the left, and select,
Out of mainly Apache and MySQL configuration parameters, fill in according to their own situation,
If you are done by the article I wrote, then your configuration should be as follows:
It is set here to run apache in the background instead of running, if you have already set
Apache is running in Services, and it is also possible to do it.
There is also a built-in helper system to use the official CHM file for PHP, you can download here:
http://www.php.net/download-docs.php
Copy to C: /WAMPP2/php/php_manual_en.chm, it is OK.
The path can also be set in the configuration options just now.
Just talked about configuring the background to run apache in the eCILPSE.
In the Window menu of ECILPS, select the Customize Perspective item, then expand Other,
There is a "php / apache" item and hook it.
Determine the tool button that starts Apache and MySQL, as shown below.
In addition, a plugin of PHP SQL is also required, and Preferences under the Window menu has a PHP SQL item.
The underlying connection item fills in the correct MySQL JDBC driver, you can download the latest version: http://www.mysql.com/downloads/api-jdbc-stable.html
Then you can use Database Bookmarks and other MySQL databases,
The following picture I am to demonstrate the main database function, the row is full,
In fact, they can be very convenient to hide.
Other options, I will not talk, everyone discover it.
There are also CVS configuration, you can refer to this article:
Http://www-900.ibm.com/developerWorks/cn/j...cvs/index.shtml
It is over here, thank you for reading here.
I like Linux and Perl, PHP, I also like Delphi.
MSN is z33@163.com
PHP Developer Forum:
http://www.pig8.com
If there is a problem, please contact me, nothing is very good.