Integrated apache+php Tutorials

Source: Internet
Author: User

  1. First modify the Apache configuration file, let Apache support parsing PHP files, Apache configuration file in the Apache installation directory of the Conf directory httpd.conf, open this file, find #loadmodule, add below this

    LoadModule php5_module "e:/apache group/php/php5apache2_2.dll" Phpinidir "e:/apachegroup/php" AddType application/x-httpd-php. php. phtml

    Bold section for your own PHP directory

  2. 2

    and find it in the httpd.conf configuration file.

    DirectoryIndex index.html

    Switch

    DirectoryIndex index.php index.html

    The bold section indicates that the default first access index.php

  3. 3 (can be omitted)

    Modify the Apache Site directory and find it in the httpd.conf configuration file.

    DocumentRoot "E:/apache Group/apache2.2/htdocs"

    Switch

    DocumentRoot "E:/apache group/php"

          

    Find it again.

    <directory "E:/apache Group/apache2.2/htdocs" >

    Switch

    <directory "E:/apache group/php" >

    END

Configure PHP
  1. First rename the php.ini-development to PHP.ini, as the PHP configuration file, open this configuration file

    Set the specific directory for the PHP extension package to find

    ; On Windows:; Extension_dir = "ext"

    Change to (value is the directory of Ext folder)

    ; On windows:extension_dir = "E:/apache group/php/ext"

  2. Set the time zone to find

    ;d Ate.timezone =

    Switch

    Date.timezone = Asia/shanghai

  3. &NBSP;

      configuration completed to detect the success of the configuration. Restart Apache, create a new file index.php under the Site directory (E:/apache group/php), enter : <?php                                                             phpinfo ();                                                                                ?>

  4. 4

    Open the browser input http://localhost, display the following content, the installation is successful

Integrated apache+php Tutorials

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.