Home >Backend Development >PHP Tutorial >Detailed steps for setting up a PHP environment using standard version of Eclipse, eclipse setting up_PHP tutorial
1. Download the PHP plug-in for Eclipse
Search phpeclipse on Baidu and see a result with the words SourceForge.net. Click on it and find the Download button. After clicking, wait for 5 seconds and the download will start.
2. Install the Eclipse PHP plug-in
After downloading the plug-in, unzip it, then delete site.xml (most plug-ins do not need to delete this file, but PHPEclipse must delete it), and finally copy the entire folder to the dropins folder of Eclipse, and restart Eclipse. .
3. Create a new PHP project and create a new PHP file in Eclipse
On the premise that the plug-in is installed successfully, you can see PHP related options when creating a new project and file. Then just write a few lines of code in the PHP file.
4. Download the PHP operating environment
Search for xampp on Baidu, and on the first result, click Normal Download.
5. Install PHP operating environment
Run the installation package. If you see any warnings, you can ignore them and click OK to proceed to the next step.
Installation options are simple for beginners, just select them all. These tomcat and mysql are all installed in the xampp directory. You will not be confused with your original tomcat and mysql. Just don't use them.
6. Configure PHP operating environment
After the installation is successful, run xamppxampp-control.exe. In the Apache line, click Config. A drop-down box will pop up. Select the third Apache (httpd-xmapp.conf), and then insert a configuration as shown in the figure. The first The first sentence is to set an alias for this PHP project to facilitate access in the browser's address bar. The following is to specify the location of the PHP project. Save it.
7. Run PHP
In the Apache line, click Start, and then see a few numbers appear in PID(s) and Port(s), which means the startup is successful.
Enter http://127.0.0.1/myphp/home.php in the browser and you can see the page you wrote before.
The above are the detailed steps for setting up a PHP environment in the standard version of Eclipse. As long as you follow the steps step by step, you will have your first PHP page.