lalla1 发表于 2013-5-16 08:50:30

Linux系统 LAMP安装结束后APACHE的配置

本文记实了安装乐成后 apache必要设置的几个地方

1 为httpd进程创建专用的用户和用户组.
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User apache
Group apache

</IfModule>
</IfModule>

2 默认措施读取路径
DocumentRoot "/var/www/html"

3 <Directory "/usr/local/apache2/htdocs">
上面的路径变了,这里也要做相应的批改

4 AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
AddType application/x-httpd-php .php 假如不加这行,在网页将不推行这个文件,却以代码行动表现.
AddType text/vnd.wap.wml               .wml
5 加载Libphp5.soLoadModule php5_module modules/libphp5.so
千万不要写错一个字6 设置默认页面<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>
记取不能用,离隔要用空格

hc6538 发表于 2013-5-17 16:43:36

要是我灌水,就骂我“三个代表”没学好吧。

xuanhao 发表于 2013-5-19 05:39:37

过来看看的

wsjz_01 发表于 2013-5-20 13:48:41

如果回帖是一种美德,那我早就成为圣人了!

qq524061227 发表于 2013-5-21 21:37:25

在一辆拥挤的公车上,一位女郎忽然叫了起来:别挤啦!别挤啦!把人家的奶都挤出来啦!(她拿着酸奶呢)。

uyfrjk 发表于 2013-5-22 12:02:48

不在课堂上沉睡,就在酒桌上埋醉。

小fish 发表于 2013-5-22 13:04:27

内练一口气,外练一口屁。
页: [1]
查看完整版本: Linux系统 LAMP安装结束后APACHE的配置