StupidBeauty
Read times:580Posted at:Tue Jul 10 04:25:04 2012
- no title specified

转载:Apache+PHP配置过程详解

要让Php脚本与Apache协同工作的话,需要修改Apache的主配置文件,载入Php模块,并且将.php文件注册成Php解释器处理的类型。

http://samyubw.blog.51cto.com/978243/322173/

亮点:

5.Apache 配置文件 httpd.conf

(1) 添加对 php 的支持

LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"

PHPIniDir "C:/Program Files/PHP"

(2) 实际工作的目录:

DocumentRoot "F:/ApcheWork"

<Directory "F:/ApcheWork">

<Directory "F:/WWW" >

Options FollowSymLinks

AllowOverride None

Order deny,allow

allow from all

</Directory>

3 )添加对 index.php 的支持

<IfModule dir_module>

DirectoryIndex index.php index.html

</IfModule>

(4) 添加类型支持

AddType application/x-httpd-php .php

AddType application/x-httpd-php .html

AddType application/x-httpd-php .php .phtml .php3 .php4

AddType application/x-httpd-php-source .phps

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4