1. Install PHP, configure PHP
Unzip the PHP5 to the specified directory and place it directly on the C drive, i.e.: C:\php
Modify the PHP directory under Php.ini-development to php.ini, open php.ini Modify the following content:
Extension_dir = "./" instead
Extension_dir = "C:/php/ext"
2. Extract Apache to C drive, i.e.: C:\Apache24
Configure Apache, because here is the direct decompression to the C packing path, so a lot of things do not need to configure.
Go to open C:\Apache24\conf\httpd.conf, here do not configure port defaults to 80
Find LoadModule Add the following two columns on the last side (path is the installation path of PHP):
LoadModule php5_module "C:/php/php5apache2_4.dll"
Phpinidir "c:/php"
Find Ifmodule dir_module inside add index.php multiple with space key apart, that is, after the modification oh: DirectoryIndex index.php index.html index.htm
Search AddType
Add at a later
AddType application/x-httpd-php. php
AddType application/x-httpd-php. html
AddType application/x-httpd-php. php. phtml. php3. PhP4
AddType Application/x-httpd-php-source. Phps
Save exit.
3. Unzip the installation eclipsephp Studio 3
Open eclipsephp Studio 3, choose a workspace of C:\Apache24\htdocs (in fact, can be arbitrarily selected, but do not want to configure those useless things, so it is directly default to use the default APAHCE)
Configuring eclipsephp Studio 3
Find Window-> Preferences in the menu bar-"php-" PHP executables-> New-"
Name casually, executable path:c:\php\php-win.exe, PHP INI file:c:\php\php.ini, the following PHP debugger: Select Xdebug OK
Find window-> Preferences-"php-" in the menu bar debug->php Debugger Select Xdebug Save exit
Find window-> Preferences-"php-" in the menu bar PHP servers-> Select Default Web Server click Edit
Path mapping is the configuration of your Apache path. When configured, save exit.
4. Testing
Create a new PHP Project with the name teses
Create a new test.php content as follows (of course, as long as you do not write the wrong line):
<?php
echo "Dsfsdfs";
Phpinfo ();
?> Save
Open Apache service.
Cmd->cd:c\apache24\bin->httpd.exe Start Service
Enter http://127.0.0.1/Teses/test.php in the browser,
See here, if you're lucky, that's it.
Note: There is no configuration involved in MySQL.
This article is from the "re-learn Java" blog, please be sure to keep this source http://3131854.blog.51cto.com/3121854/1555112
Php-eclipse Integrated Configuration (eclipsephp Studio 3)