Detailed steps for setting up a PHP environment in standard Eclipse

Source: Internet
Author: User
This article describes how to build a PHP environment in Eclipse. If you are interested, refer

This article describes how to build a PHP environment in Eclipse. If you are interested, refer

1. Download the PHP plug-in of Eclipse

Baidu searched phpeclipse and saw a result with the words SourceForge.net. Click it and find the Download button. Then, the Download will start in 5 seconds.

Ii. Install the PHP plug-in of Eclipse

After the plug-in is downloaded, decompress the package and. delete xml (Most plug-ins do not need to delete this file, but PHPEclipse must delete). Finally, copy the entire folder to the dropins folder of Eclipse and restart Eclipse.

3. Create a PHP project and a PHP file in Eclipse

If the plug-in is successfully installed, PHP-related options are displayed when you create a project or file. Then write a few lines of code in the PHP file.

4. Download the PHP Runtime Environment

Baidu searches for xampp. In the first result, click normal download.

5. Install the PHP Runtime Environment

Run the installation package. If you see a warning, ignore it. Click OK to go to the next step.

The installation options are simple for beginners. You can simply select all of them. These tomcat and mysql are all installed in the xampp directory and won't confuse your original tomcat and mysql, do not use them.

6. Configure the PHP Runtime Environment

After the installation is successful, run xampp \ xampp-control.exe, in the Apache line, click Config, will pop up a drop-down box, select the third Apache (httpd-xmapp.conf), and then insert a piece of configuration, the first sentence is to set an alias for this PHP project to facilitate access in the address bar of the browser. The following describes the location of the PHP project. Save it.

7. run PHP

In the Apache line, click Start, and then several numbers appear in PID (s) and Port (s), which indicates that the startup is successful.

Enter in the browser to view the previously written page.

The above are the detailed steps for setting up the PHP environment in the standard version of Eclipse. You only need to follow the steps and step by step to have your first php page.

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.