To configure the PHP server environment steps

Source: Internet
Author: User
Tags configuration php php server
    1. #导入PHP5的模块
    2. LoadModule php5_module "D:/program files/php/php5apache2_2.dll"
    3. #URL中能够识别. PHP end-of-file
    4. AddType application/x-httpd-php. php
    5. #URL中能够识别. Phps End of File
    6. AddType Application/x-httpd-php-source. Phps
    7. #网站默认PHP得主页
    8. DirectoryIndex index.html index.htm index.php default.php
    9. #PHP. INI Storage directory
    10. #PHPIniDir "D:/program files/php"
Copy Code

Note that if the php.ini is placed under c:/windows (or c:/winnt), there is no need to configure Phpinidir

Then, open with Notepad: D:/program Files/apache software foundation/apache2.2/conf/httpd.conf

Add a line to the end of the file: Include conf/extra/httpd-php5.conf

Fourth step, test the PHP server configuration, testing the PHP environment to build success or not? Restart Apache, Open Directory: D:/program files/apache software foundation/apache2.2/htdocs new file: index.php input:

    1. Phpinfo ();
    2. ?>
Copy Code

Open your browser to view http://localhost or http://127.0.0.1. PHP Server Environment configuration (Apache and IIS two methods) PHP Server Environment Construction method under Ubuntu configuration PHP Server environment PHP and MySQL server configuration instructions PHP get server information class PHP get server-side information alternative method PHP get server information for a piece of code

  • 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.