Apache服务器的正确安装和配置

王朝system·作者佚名  2008-05-19
窄屏简体版  字體: |||超大  

一、 安装APACHE1.3.9 (配置conf目录下的httpd.conf文件)

1.#BindAddress * 改为 BindAddress 127.0.0.1

#Servername new.host.name 改为 Servername localhost或(您的IP地下址).

设置您的端口.如果您安装了IIS则要改您的端口号.则在confhttpd.conf:Port 80(默认).

则在浏览器中输入http//localhost:80/时能访问IIS.

2.设置管员的信箱 修改ServerAdmin yourname@your.address

3.让你的APACHE来支持PHP4. 加上下面这么几句:

ScriptAlias /php4/ "C:/php4/"

AddType application/x-httpd-php4 .php

AddType application/x-httpd-php4 .php3

AddType application/x-httpd-php4 .php4

Action application/x-httpd-php4 "/php4/php.exe"

4.

3.设置Apache虚拟目录,加入以下行:

Alias /test/ "c:/php3/test/"

Alias /jjjj/ "d:/timenet/"

4.增加默认启动文档:

DirectoryIndex index.html

DirectoryIndex index.htm

DirectoryIndex index.php

DirectoryIndex index.php3

DirectoryIndex index.php4

5.测试文件info.php:

在浏览器中输入http// localhost/info.php

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航