文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>lamp编译参数

lamp编译参数

时间:2008-05-25  来源:Eric_DZT

linux安装软件,通过编译的方式安装,最大的好处就是可以定制,那么他的参数也很多,我把我要编译的软件的参数都整理放在这里,以后就方便了。   Apache编译参数注解   ./configure   //配置源代码树
--prefix=/usr/local/apache2   //体系无关文件的顶级安装目录PREFIX ,也就Apache的安装目录。
--enable-module=so   //打开 so 模块,so 模块是用来提 DSO 支持的 apache 核心模块
--enable-deflate=shared   //支持网页压缩
--enable-expires=shared   //支持 HTTP 控制
--enable-rewrite=shared   //支持 URL 重写
--enable-cache //支持缓存
--enable-file-cache //支持文件缓存
--enable-mem-cache //支持记忆缓存
--enable-disk-cache //支持磁盘缓存
--enable-static-support   //支持静态连接(默认为动态连接)
--enable-static-htpasswd   //使用静态连接编译 htpasswd - 管理用于基本认证的用户文件
--enable-static-htdigest   //使用静态连接编译 htdigest - 管理用于摘要认证的用户文件
--enable-static-rotatelogs   //使用静态连接编译 rotatelogs - 滚动 Apache 日志的管道日志程序
--enable-static-logresolve   //使用静态连接编译 logresolve - 解析 Apache 日志中的IP地址为主机名
--enable-static-htdbm   //使用静态连接编译 htdbm - 操作 DBM 密码数据库
--enable-static-ab   //使用静态连接编译 ab - Apache HTTP 服务器性能测试工具
--enable-static-checkgid   //使用静态连接编译 checkgid
--disable-cgid   //禁止用一个外部 CGI 守护进程执行CGI脚本
--disable-cgi   //禁止编译 CGI 版本的 PHP
--disable-userdir   //禁止用户从自己的主目录中提供页面
--with-mpm=worker // 让apache以worker方式运行
--enable-authn-dbm=shared // 对动态数据库进行操作。Rewrite时需要
  mysql编译参数注解   configure的相关参数:
--prefix=/home/mysql/   \指定安装目录
--without-debug \去除debug模式
--with-extra-charsets=gbk,gb2312,utf8   \添加gbk,gb2312,utf8中文字符支持
--with-pthread \强制使用pthread库(posix线程库)
--enable-assembler \使用一些字符函数的汇编版本
--enable-thread-safe-client \以线程方式编译客户端
--with-client-ldflags=-all-static \以纯静态方式编译客户端
--with-mysqld-ldflags=-all-static \以纯静态方式编译服务端
--without-isam \去掉isam表类型支持,现在很少用了,isam表是一种依赖平台的表
--without-innodb \去掉innodb表支持,innodb是一种支持事务处理的表,适合企业级应用
http://www.cublog.cn/u/31547/showart_493408.html   1. 下载最新的apache2..2 http://www.apache.org   2. 配置参数: ./configure
--prefix=/usr/local/httpd2 \
--enable-so \
--disable-include \
--enable-expires \
--enable-usertrack \
--enable-unique-id \
--disable-userdir \
--enable-rewrite
  说明:   --enable-so: 激活动态加载,这样可以以so的方式来编译php
--disable-include \ 不需要服务器端包含。
--enable-expires \ 可以动态设置每一个文件的过期时间。
--enable-usertrack \ 用于用户的跟踪。
--enable-unique-id \ 每一次会话都可以产生一个惟一的id。
--disable-userdir \ 禁止userdir功能。
--enable-rewrite 打开url重写。
  二、安装php   1. 配置参数: ./configure \
--prefix=/usr/local/php5 \
--with-apxs2=/usr/local/httpd2/bin/apxs \
--with-bz2 \
--enable-zip \
--enable-calendar \
--with-mysql=/usr/local/mysql \
--with-pdo-mysql=/usr/local/mysql \
--enable-sqlite-utf8 \
--with-iconv=/usr/local/iconv \
--enable-mbstring \
--with-curl \
--with-snmp \
--with-tidy \
--enable-exif \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib-dir=/usr \
--with-xpm-dir=/usr \
--with-ttf=/usr \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--with-ming=/usr/local \
--with-xmlrpc \
--enable-soap \
--enable-sockets \
--with-mcrypt \
--with-mhash \
--enable-shmop \
-enable-dba \
--with-gdbm \
--with-db4 \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--with-mcrypt=/usr/local \
--with-mhash=/usr/local \
--enable-pcntl \
说明: -with-bz2 \ 打开对bz2文件的支持。
--enable-zip \ 打开对zip的支持。
--enable-calendar \ 打开日历扩展。
--with-mysql=/usr/local/mysql \ mysql的支持
--with-pdo-mysql=/usr/local/mysql \ pdo的mysql支持。
--enable-sqlite-utf8 \ 使sqllite支持utf-8
--with-iconv=/usr/local/iconv \ 支持iconv
--enable-mbstring \ 支持mbstring
--with-curl \
--with-snmp \
--with-tidy \
--enable-exif \
--with-gd \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib-dir=/usr \
--with-xpm-dir=/usr \
--with-ttf=/usr \
--with-freetype-dir=/usr \
--enable-gd-native-ttf \
--with-ming=/usr/local \
--with-xmlrpc \
--enable-soap \
--enable-sockets \
--with-mcrypt \
--with-mhash \
--enable-shmop \
-enable-dba \
--with-gdbm \
--with-db4 \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--with-mcrypt=/usr/local \
--with-mhash=/usr/local \
--enable-pcntl \
  需要单独安装的扩展: 1. gd库。
2. ming的扩展。
3. mhash和mcrypt的扩展。

其他的都是通过rpm安装的。
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载