Build a PHP development environment with Eclipse PDT + xampp

Source: Internet
Author: User
Tags php development environment php website windows 5

Eclipse version: Eclipse Luna Service Release 2 (4.4.2)

XAMPP version: XAMPP for Windows 5.6.8

1. Installation environment dependencies, IDE and Web server

1), install the JDK, download and install the process slightly, remember to configure environment variables after installation

2), download "Eclipse for PHP Developers" or "Eclipse Standard Edition" and install the eclipse PDT plugin manually

3), download the Xampp and install, for example, the installation path is "D:\SoftwareFiles\Xampp".

2. Configuring the PHP executables in eclipse

Start Eclipse, select Window->perference->php->php executables from the menu bar;

Click the "Add" button on the right to add the configuration, such as:

Click "OK" to save.

3. Configure the development directory as a Apach virtual directory

Open the Xampp Control Panel, click the "Config" button on the "Apache" line, select "Apache (httpd.conf)" In the Popup right-click menu, and open the Apache configuration file, such as:

Configure the virtual directory by appending the following to the end of the open "httpd.conf" file, such as "E:\WorkSpaces\Eclipse"

# ADD Virtual Directory for Eclipse Develop Php WebSite<IfmoduleAlias_module>alias/phpeclipse/"e:/workspaces/eclipse/"</Ifmodule># ADD "PHPEclipse" Virtual Directory premission<Directory"e:/workspaces/eclipse/">allowoverride None Options none Order Allow,deny allow from all</Directory>

Reboot Apache after append completes to make the virtual directory take effect.
4, test development environment to build the situation

Build a PHP development environment with Eclipse PDT + xampp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.