Apache 2.2.4 + PhP 5.2.0 installed successfully

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.