/usr/bin/htpasswd 用来作最基本的密码保护 >>>>>>>>>>> php /usr/lib/httpd/modules/libphp5.so php模块 /etc/httpd/conf.d/php.conf 手动php模块的载入配置文件 /etc/php.ini php的主配置文件 >>>>>>>>>>> 1.确定主机名,因为是测试 所以用本地 [root@localhost ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
81 MaxKeepAliveRequests 200 该次传输最大的传输数量 87 KeepAliveTimeout 15在同一个连接上从同一台client接收请求等待的秒数 100
101 StartServers 8
102 MinSpareServers 5
103 MaxSpareServers 20
104 ServerLimit 256
105 MaxClients 256
106 MaxRequestsPerChild 4000
107
108
109 # worker MPM
110 # StartServers: initial number of server processes to start
111 # MaxClients: maximum number of simultaneous client connections
112 # MinSpareThreads: minimum number of worker threads which are kept spare
113 # MaxSpareThreads: maximum number of worker threads which are kept spare
114 # ThreadsPerChild: constant number of worker threads in each server process
115 # MaxRequestsPerChild: maximum number of requests a server process serves —–附赠了解释
210 Include conf.d/*.conf 这里是使用conf.d 目录下文件的设置,apache会把这里的配置文件也一起载入, 231 User apache
232 Group apache 关于apache 执行时候的用户组 265 #ServerName www.example.com:80 设定域名 , 274 UseCanonicalName Off 270 # When set “Off”, Apache will use the Hostname and Port supplied
271 # by the client. When set “On”, Apache will use the value of the
272 # ServerName directive 这里有解释 281 DocumentRoot “/var/www/html” 网页的目录 291 —这个是格式
292 Options FollowSymLinks
293 AllowOverride None
294
398 AccessFileName .htaccess 是否允许.htaccess和.htpasswd
399
400 #
401 # The following lines prevent .htaccess and .htpasswd files from being
402 # viewed by Web clients.
403 #
404
405 Order allow,deny
406 Deny from all
407
697 AddLanguage ca .ca 这里打下是apache支持的语系 731 LanguagePriority en zh-CN ca cs da de el eo es et fr he hr it ja ko ltz nl n n no pl pt pt-BR ru sv zh-TW 语系的优先顺序 747 AddDefaultCharset UTF-8默认使用的字符编码,这里不设定好 ,有时候遇到一些 乱码的事情就是这里,有的支持big5 ,但是现在普遍都是utf-8,或者 你要在网页表头宣告你要加入charset=utf-8 来表示你这个网页是这个编码的 暂时最最基本的配置已经完成了, ———————————————–