PHP Course-php Environment Learning notes

Source: Internet
Author: User
2-1-1php Environment Build installation Server I win the workplace

One, Web server: Apache

Configure server: C:\Apache2.2\conf\httpd.conf

Apache Home directory: DocumentRoot node

Directory:apache's Browse directory and home directory remain consistent

Apache default home page: DirectoryIndex

Restart the Apache service after the modification is complete

working principle of 2-1-2php environment I win the workplace

The principle of Apache work

Apache is a Web server that provides Web browsing capabilities for software.

Apache can only handle HTML-type files. To handle PHP, tutorial and PHP installer to work together to complete.

Installing PHP

1 "Extract the PHP installation files

2 "Modify the installation directory under the Php.ini-dist file name php.ini, as a php configuration file."

2-1-3php Environment Building binding PHP I win the workplace

5, the Apache binding PHP

1 "Configure Apache server, httpd.conf

2 plus loadmodule php5_module "Location of Php5apache2_2.dll files"

3 phpinidir "php.ini config file directory"

4 "AddType application/x-httpd-php. PHP tells Apache2 which files can't be handled by PHP.

5 "Restart the Apache service

Example:

LoadModule php5_module "C:\php5.2\php5apache2_2.dll"

Phpinidir "C:\php5.2"

AddType application/x-httpd-php. php

Installing the PHP integrated environment: Wamp/appserv but not recommended for trial

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.