Configure Apache to support PHP5 Apache PHP suite Apache add PHP module Apache deploy PHP entry

Source: Internet
Author: User
Tags apache php
Environment: Window 7, apache/2.2.19 (WIN32) php/5.2.9-1

1. Configure the server name

Remove the #ServerName localhost:80 comments from the inside.

Re-run the Apache service.

The http://localhost:80 can then be accessed through a browser, which means that Apache has been installed and started successfully if the page is displayed.


2. Add PHP Support

1

LoadModule php5_module "D:/php-5.2.9/php5apache2_2.dll"

Add the following location
AddType application/x-httpd-php. php. php5. PhP4. php3. phtml. Phpt
AddType Application/x-httpd-php-source. Phps

3. Add PHP.ini Directory

1

PHPIniDir"D:/php-5.2.9"PHP 路径

4. Update php.ini file

Php.ini-development change to php.ini under PHP

5. Test test.php

Add test.php under Apache Htdocs

1

2

3

phpinfo();

?>

The above describes the configuration of Apache support PHP5, including the apache,php5 aspects of the content, I hope the PHP tutorial interested in a friend helpful.

  • Related Article

    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.