Home | Mirror | Search

第 4 章 安装 LAMP

目录

1. Apache
2. MySQL
3. PHP
3.1. httpd
3.2. php
4. resin-pro
5. httpd-2.2.21 + php-5.3.8 自动安装脚本
groupadd -g 80 www
adduser -o --home /www --uid 80 --gid 80 -c "Web User" www
	

1. Apache

		
./configure --prefix=/usr/local/$HTTPD_DIR \
--with-mpm=worker \
--enable-so \
--enable-mods-shared=all \
--disable-authn_file \
--disable-authn_default \
--disable-authz_groupfile \
--disable-authz_user \
--disable-authz_default \
--disable-auth_basic \
--disable-include \
--disable-env \
--disable-autoindex \
--disable-asis \
--disable-cgi \
--disable-cgid \
--disable-negotiation \
--disable-actions \
--disable-userdir \
--disable-alias


./configure --prefix=/usr/local/httpd-2.2.16 \
--with-mpm=worker \
--enable-modules="dir mime rewrite deflate expires headers vhost_alias cache mem-cache" \
--enable-mods-shared="alias status info ssl usertrack file-cache disk-cache version " \
--disable-authn_file \
--disable-authn_default \
--disable-authz_groupfile \
--disable-authz_user \
--disable-authz_default \
--disable-auth_basic \
--disable-version \
--disable-env \
--disable-autoindex \
--disable-asis \
--disable-cgid \
--disable-cgi \
--disable-negotiation \
--disable-actions \
--disable-userdir \
--enable-so \
--enable-file-cache \
--enable-cache \
--enable-disk-cache \
--enable-mem-cache \
--enable-expires \
--enable-headers \
--enable-ssl \
--enable-info \
--enable-rewrite

make && make install
		
		
comments powered by Disqus