[This is my own study notes, welcome reprint, but please specify the source:http://blog.csdn.net/jesson20121020]
Recently, due to the need to make an Android web app, you need to build a server, and develop dynamic Web pages, in order to improve efficiency, you install PHP plug-ins in eclipse, and can directly in eclipse to browse their own development of dynamic Web pages, Instead of having to enter a path such as localhost in the browser, the entire configuration process is now logged as follows:
1. Download the Phpeclise plugin
: http://sourceforge.net/projects/phpeclipse/files/
2. unzip the downloaded phpeclise, including features and plugins two folders, and copy them to your eclipse's corresponding directory.
3. Enable the PHPEclipse plugin
To Window-preferences–phpeclipse Web development–php Specify the location of your PHP environment Apache,php,mysql three executable files, as the parameters appear to be the default, I use Apache2, modified a bit, start with:-w-n "Apache2"-K start; stop using:-w-n "Apache2"-stop; re-enable-w-n "Apache2"-K restart
So the few Apache and MySQL buttons on the toolbar will work.
4. Link Eclipse working directory to apche2 default directory
sudo ln-s develop/workspace/web_workspace/var/www This is the link method under Linux, You can modify the http.conf configuration file under Windows, or set the PHP working directory for Eclipse directly to the default directory of Apache2.
Eclipse Install PHP Plugin