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:
That is, listening to port 80 by default, you only need to change port 80 to port 8080. the modification is as follows:
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:
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"