Problems encountered in PHPECLIPSE+XAMPP development environment
Recently in a PHP Web project, the development environment is PHPECLIPSE+XAMPP.
For PHPEclipse, after downloading the PHPEclipse plugin, copy the contents of the corresponding features and plugins folders directly under the features and plugins folders under the Eclipse directory, then restart Eclipse.
For xampp, download the corresponding installation files on the Internet, directly installed on it, XAMPP is Apache+mysql+php+perl, so after the installation of XAMPP, you will find in the XAMPP installation directory, there are PHP folders, Apache folder, MySQL folder, Perl folder and so on. The installation of the Apache,mysql,php,perl is completed.
After installation, you will often encounter the following problems:
1. When XAMPP is turned on, an error will be asked. is roughly: could not bind to 0.0.0.:80The reason is typically 80 ports are occupied.
Then there are 2 natural ways to solve the problem, the first is to take the process of 80 ports to kill, the second is to replace the 80 port.
For the first method, the personal feeling is not very good, the process is killed, at any time may be in your unintentional operation again, so I will replace the 80 port, replaced by the usual 8080 port. Here's how:
Under the XAMPP directory, locate the Apache configuration file, my directory is C:\xampp\apache\conf\httpd.conf. In approximately 47 rows, configure the following:
Listen 80
That is, the default listener 80 port, then only need to change 80 to 8080 can be modified as follows:
Listen 8080
2. The Web page cannot be accessed. For example, when the project's webpage is web/index.php, when you visit http://localhost:8080/web/index.php, you will be prompted not to connect or find the page error. It turns out that the page you want to visit is not found.
The workaround I'm using 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's path (my Project path is "E:\Workspaces\Eclipse"), so the following:
DocumentRoot "E:\Workspaces\Eclipse"
Similarly, in approximately 211 rows, modify the directory path to the DocumentRoot path that you previously set, as follows:
Once modified, the next Apache restart can be accessed by a URL similar to http://localhost:8080/web/index.php.
1/F ppgg888888 2012-09-15
I used Appserv, the Apache httpd.conf file, about 240 lines.
DocumentRoot "D/My Documents/my Documents/aptana Studio 3 Workspace"