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