码迷,mamicode.com
首页 > Web开发 > 详细

php -- 配置与安装

时间:2014-05-19 08:02:47      阅读:529      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   class   code   c   

1.php与apache安装路径

bubuko.com,布布扣

 

2.安装Apache服务 httpd -k install

开启关闭重启服务 http -k start/stop/restart

3.php.ini-development重命名为 php.ini

4.配置Apache的httpd.conf,关联php解析器。在最后添加

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

在<IfModule mime_module>里面添加

AddType application/x-httpd-php .php

5.更改服务器默认目录

bubuko.com,布布扣
 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 granted
 9     Options Indexes FollowSymLinks
10     AllowOverride None
11     Order allow,deny
12     Allow from all
13     Satisfy all
14 </Directory>
15 <Directory "D:\a\php\test">
16     Require all granted
17     Options Indexes FollowSymLinks
18     AllowOverride None
19     Order allow,deny
20     Allow from all
21     Satisfy all
22 </Directory>
23 <Directory "D:\a\php\temp">
24     Require all granted
25     Options Indexes FollowSymLinks
26     AllowOverride None
27     Order allow,deny
28     Allow from all
29     Satisfy all
30 </Directory>
31 <Directory "F:\APP\IDE\PHP\Apache24/htdocs">
32     #
33     # Possible values for the Options directive are "None", "All",
34     # or any combination of:
35     #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
36     #
37     # Note that "MultiViews" must be named *explicitly* --- "Options All"
38     # doesn‘t give it to you.
39     #
40     # The Options directive is both complicated and important.  Please see
41     # http://httpd.apache.org/docs/2.4/mod/core.html#options
42     # for more information.
43     #
44     Options Indexes FollowSymLinks
45 
46     #
47     # AllowOverride controls what directives may be placed in .htaccess files.
48     # It can be "All", "None", or any combination of the keywords:
49     #   AllowOverride FileInfo AuthConfig Limit
50     #
51     AllowOverride None
52 
53     #
54     # Controls who can get stuff from this server.
55     #
56     Require all granted
57 </Directory>
bubuko.com,布布扣

 

php -- 配置与安装,布布扣,bubuko.com

php -- 配置与安装

标签:des   style   blog   class   code   c   

原文地址:http://www.cnblogs.com/baijifeilong/p/3732284.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!