For Apache 2.2.4 + PhP 5.2.0, refer to the instructions on the official PHP website to verify that the installation is successful. Record the process here.
Install Apache in the default directory. Because IIS may be used in the future, during installation, port 80 is not selected to be occupied with Windows startup. Instead, port 8080 is used as the option below. However, The apache2 service will not be added to the "service" List of windows. You need to add it manually. After installation, go to C:/program files/Apache Software Foundation/apache2.2/bin, run httpd-K install, in this way, you can control Apache through Apache monitor on Windows or the task tray.
Next, install PHP. Decompress the PHP compressed package to the E:/PHP Directory and rename PHP. ini-recormended to PhP. ini. Open the Apache configuration file and add
Loadmodule php5_module "E:/PHP/php5apache2_2.dll"
Addtype application/X-httpd-PHP. php
Phpinidir "E:/PHP"
Save and exit. Restart the Apache server.
Write a PHP file in the main Apache document directory, such as test. php. The content is:
<? PHP
Phpinfo ();
?>
Then, enter http: // localhost: 8080/test. php in the address bar of the browser to view a long list.