Linux系统 LAMP安装结束后APACHE的配置
本文记实了安装乐成后 apache必要设置的几个地方1 为httpd进程创建专用的用户和用户组.
#
# 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
2 默认措施读取路径
DocumentRoot "/var/www/html"
3
上面的路径变了,这里也要做相应的批改
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.so
LoadModule php5_module modules/libphp5.so
千万不要写错一个字
6 设置默认页面
DirectoryIndex index.html index.htm index.php
记取不能用,离隔要用空格
页:
[1]