In Windows, the first step to build a PHP environment based on the Apache server is to download the installation program (1) apache2.2.4. (2) download php5.2.3 at: http://www.php.net/downloads.php. Select php5.2.3.zip packageunder windows binariesand check the php-5.2.3-win32.zip file, which is more than 9 MB. Step 2: Installation Program (1) install the double-click installation program in Apache. The installation program is installed by default in addition to the one required in the middle. The exception step has two options: "for all users, on port80 ...", The other is "only for current user, on port 8080 ...", For the convenience of testing and development, we recommend that you use port 8080 in the latter type to facilitate testing. (2) scripts and php5apache2_2.dll files. Then change the php-5.2.3-Win32 file name to PhP and copy it to the C root directory. Step 3: Environment configuration (1) Add the PHP environment variable: Add "C:/PHP" to the system variable path. Note that the values are separated by semicolons. Path System variables can be found by right-clicking my computer> Properties> advanced> environment variables> system variables> path. (2) modify the Apache configuration file: Find httpd under the Apache directory c:/program files/Apache Software Foundation/apache2.2/CONF. conf, add the following command: loadmodule php5_module "C:/PHP/php5apache2_2.dll" addtype application/X-httpd-PHP. PHP Step 4: test successful (1) write a simple PHP test webpage hello. PHP: <HTML>