Problems encountered in the phpeclipse + xampp development environment

Source: Internet
Author: User
Problems encountered in the phpeclipse + xampp development environment recently I am working on a PHP web project. The development environment is phpeclipse + xampp. & Nbsp; for phpeclipse, after downloading the phpeclipse plug-in, copy the content in the corresponding features and plugins folders to the eclipse phpeclipse + xampp development environment.
Recently, I am working on a PHP web project. The development environment is phpeclipse + xampp.
For phpeclipse, after downloading the phpeclipse plug-in, copy the content in the corresponding features and plugins folders to the features and plugins folders under the eclipse directory, and then restart eclipse.
For xampp, download the corresponding installation file online and install it directly. xampp is apache + mysql + php + perl. Therefore, after xampp is installed, you will find php, apache, mysql, and perl folders under the xampp installation directory. You have installed apache, mysql, php, and perl.

After installation, you will often encounter the following problems:

1. when xampp is enabled, an error is reported. Roughly: cocould not bind to 0.0.0.: 80. generally, port 80 is occupied.

There are two solutions. The first is to kill the process that occupies port 80 and the second is to replace port 80.
For the first method, I personally don't feel very good. after killing the process, it may appear again at any time in your unintentional operations, so I replaced port 80, replace it with the commonly used port 8080. The method is as follows:

Under the xampp Directory, find the apache configuration file. my directory is C: \ xampp \ apache \ conf \ httpd. conf. The configuration is roughly 47 rows:
Listen 80

That is, listening to port 80 by default, you only need to change port 80 to port 8080. the modification is as follows:
Listen 8080


2. unable to access the web page. For example, the project webpage is web/index. when you access http: // localhost: 8080/web/index. in php, the system prompts that the connection fails or the page cannot be found. The page to be accessed is not found.

My solution is to modify the apache configuration file. Open % XAMPP_HOME % \ apache \ conf \ httpd. conf. my directory is C: \ xampp \ apache \ conf \ httpd. conf. In about 184 rows, modify the DocumentRoot value to the project path (my project path is "E: \ Workspaces \ Eclipse"), so the following is the result:
DocumentRoot "E:\Workspaces\Eclipse"

Similarly, in about 211 rows, change the Directory path to the previously set DocumentRoot path, as shown below:
 

After modification, restart apache to access apache by URL similar to http: // localhost: 8080/web/index. php. On the first floor, ppgg888888 2012-09-15 my appserv apache httpd. conf file is about 240 lines.
DocumentRoot "D/My Documents/Aptana Studio 3 Workspace"
Related Article

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.