PHP--Configuration and installation

Source: Internet
Author: User

1.php and Apache installation path

2. Installing Apache service httpd-k Install

Turn off restart service Http-k Start/stop/restart

3.php.ini-development renamed to PHP.ini

4. Configure the Apache httpd.conf to associate the PHP parser. At the end of the add

LoadModule php5_module "F:\APP\IDE\PHP\php5\php5apache2_4.dll"
Phpinidir "F:\APP\IDE\PHP\PHP5"

Add inside the <ifmodule mime_module>

AddType application/x-httpd-php. php

5. Change the server default directory

1 #DocumentRoot "F:\app\ide\php\apache24/htdocs"2 documentroot "D:\a\php\root"3 Alias/ap "F:\app\ide\php\apache24/htdocs"4 alias/test "D:\a\php\test"5 alias/temp "D:\a\php\temp"6 7 <Directory"D:\a\php\root">8 Require All granted9 Options Indexes followsymlinksTen allowoverride None One Order Allow,deny A  allow from all - Satisfy All - </Directory> the <Directory"D:\a\php\test"> - Require All granted - Options Indexes followsymlinks - allowoverride None + Order Allow,deny -  allow from all + Satisfy All A </Directory> at <Directory"D:\a\php\temp"> - Require All granted - Options Indexes followsymlinks - allowoverride None - Order Allow,deny -  allow from all in Satisfy All - </Directory> to <Directory"F:\app\ide\php\apache24/htdocs"> +     # - # Possible values for the Options directive is "None", "All", the # or any combination of: * # Indexes includes followsymlinks symlinksifownermatch execcgi multiviews $     #Panax Notoginseng # Note that "MultiViews" must is named *explicitly*---"Options all" - # doesn ' t give it to you. the     # + # The Options directive is both complicated and important. Please see A # http://httpd.apache.org/docs/2.4/mod/core.html#options the # for more information. +     # - Options Indexes followsymlinks $  $     # - # AllowOverride Controls What directives is placed in. htaccess files. - # It can be ' all ', ' None ', or any combination of the keywords: the # allowoverride FileInfo authconfig Limit -     #Wuyi allowoverride None the  -     # Wu # Controls who can get stuff from the this server. -     # About Require All granted $ </Directory>

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.