Feed on
Posts
Comments

Archive for the 'LAMP' Category

正如你看到的,这只是一个简单的搭建教程,并不是配置优化设置。后继原创或是转载相并配置优化的文章,请关注。
本文转载自http://www.wuqihua.com/189.htm ##CONTINUE##
Linux 采用Redhat Enterprise Server 5.1 安装过程就不在累赘了! 本文旨在阐述该环境下Apache 2.2.8 + PHP 5.2.5 + MySql 5.0.32的具体配置过程! ===================================================================== 用到的文件清单及下载地址: httpd-2.2.8.tar.gz http://httpd.apache.org/download.cgi php-5.2.5.tar.gz http://www.php.net/archive/2007.php mysql-5.0.32.tar.gz http://download.chinaunix.net/download/0008000/7159.shtml 官方下载太慢不建议在官方下 建议下载5.0.*
以下为php编译时用到的库文件。 在 http://download.chinaunix.net/develop 搜索关键词都能下载到! zlib-1.2.3.tar.gz libxml2-2.6.23.tar.bz libpng-1.2.10.tar.bz2 jpegsrc.v6b.tar.gz gd-2.0.33.tar.gz freetype-2.2.1.tar.bz curl-7.15.3.tar.bz2 =====================================================================
安装前卸载redhat自带的apache ,php, mysql,否则安装的时候会出问题。
php5.0 要求libxml2-2.6.0以上更高的版本,这一解析器提供php5.0 新的XML API ===================================================================== 安装libxml2 tar -zxvf libxml2-2.6.23.tar.gz cd libxml2-2.6.23 ./configure -prefix=/usr/local/libxml2 make make install
这一步结束时,libxml2被安装在/usr/local/下。 ===================================================================== 安装 [...]

Read Full Post »

转载自台湾小红帽技术论坛
apache部份参数说明
AllowOverride的属性功能
AllowOverride Limit允许盖掉原联结属性得范围
AllowOverride Authconfig可做密码设定:如:藏密
AllowOverride Options可将该目录之Options功能覆盖
AllowOverride FileInfo可将该目录之任何文件型态覆盖,如:DefaultType,ErrorType
AllowOverride Indexs可将该目录之显式列印功能覆盖,如:AddIcon,HeaderName.ReadName
Options的属性功能
Indexs当无index.html可用列印目录方式显式,如:center3 homepage若用-Indexs则看不见listing
FollowSymLinks加一属性如+FollowSymLinks可允许使用symbol link时,依旧可浏览
ExecCGI当为+ExecCGI可执行CGI SCRIPT
Includes可执行Server site include,若为+Includes
IncludesNOEXEC可执行Server site include,若为+Includes,但不可执行CGI
None没有任何功能可用
All均可
总之,以+, -符号可加或删减其功能,若未给符号,则只有初步功能
Limit的属性功能
GET限定取得文件法,如:<Limit GET>
POST限定cgi post方法,如:<Limit POST>
order限定拒绝或允许的次序
deny限定拒绝范围,如:deny from all或deny from .mycompany.com
allow限定允许范围,如:allow from all或allow from 192.153.22
AuthConfig之方法& .htaccess范例
<Files index.html>
#与Directory同,但在.htaccess只能用他AuthName Members-only设定仅Member才可入,
#仅为名称AuthType Basic解码方法AuthUserFile /home1/users/center/center21/public_html/wwwclass/bau
#密码表位置(绝对位置) AuthGroupFile /home1/users/center/center21/public_html/wwwclass/group
#同群表位置
<Limit GET>
#限制取件
require user center21
#bau的密码表有很多user,但....
order allow,deny
#先允许在拒绝
allow from all
#允许全部
</Limit>
<Files>
密码表之产生方法
找到及取得htpasswd程式
执行htpasswd -c filename username (第一次,以后仅htpasswd filename username)
修改需要的user (在require后)
require用法
require user center21 center3
require group cc cv ee
#语法:ServerType [standalone/inted]
#说明:定义httpd的启动方式
# standalone:开机后立即执行,效率较高,http独立执行,即使没有浏览者连入本网站,
都会启动httpd以随畤提供服务。
# inted:需要时才临时启动,监听所有进入本机请求的port,然后核对port所对应的服务
以决定要用哪一个服务,再执行httpd,当请求完结就将httpd结束。
#语法:Port [...]

Read Full Post »