zoukankan      html  css  js  c++  java
  • linux web服务apache,数据库MySQL,PHP的编译安装参数

    ========httpd-2.2.27安装========
    cd /home/liuhui/tools/
    wget http://mirrors.cnnic.cn/apache/httpd/httpd-2.2.27.tar.gz
    tar xf httpd-2.2.27.tar.gz
    cd httpd-2.2.27
    less INSTALL
    less README
    yum install zlib zlib-devel -y
    yum install -y ncurese-devel

    ./configure
    --prefix=/application/apache2.2.27
    --enable-deflate
    --enable-expires
    --enable-headers
    --enable-modules=most
    --enable-so
    --with-mpm=worker
    --enable-rewrite

    make
    make install
    ln -s /application/apache2.2.27/ /application/apache

    ==========mysql5.1.72==========
    cd /home/liuhui/tools/mysql5.1.72

    ./configure
    --prefix=/application/mysql5.1.72
    --with-unix-socket-path=/application/mysql5.1.72/tmp/mysql.sock
    --localstatedir=/application/mysql5.1.72/data
    --enable-assembler
    --enable-thread-safe-client
    --with-mysqld-user=mysql
    --with-big-tables
    --without-debug
    --with-pthread
    --enable-assembler
    --with-extra-charsets=complex
    --with-readline
    --with-ssl
    --with-embedded-server
    --enable-local-infile
    --with-plugins=partition,innobase
    --with-mysqld-ldflags=-all-static
    --with-client-ldflags=-all-static
    #--with-plugin-PLUGIN

    ==========php==========
    安装准备
    yum install zlib libxml libjpeg freetype libpng gd curl libiconv zlib-devel libxml2-devel libjpeg-devel freetype-devel libpng-devel gd-devel curl-devel -y

    tar zxf libiconv-1.14.tar.gz
    cd libiconv-1.14
    ./configure --prefix=/usr/local/libiconv
    make
    make install
    cd ../

    ./configure
    --prefix=/application/php5.3.27
    --with-apxs2=/application/apache/bin/apxs
    --with-mysql=/application/mysql
    --with-xmlrpc
    --with-openssl
    --with-zlib
    --with-freetype-dir
    --with-gd
    --with-jpeg-dir
    --with-png-dir
    --with-iconv=/usr/local/libiconv
    --enable-short-tags
    --enable-sockets
    --enable-zend-multibyte
    --enable-soap
    --enable-mbstring
    --enable-static
    --enable-gd-native-ttf
    --with-curl
    --with-xsl
    --enable-ftp
    --with-libxml-dir

  • 相关阅读:
    day09-文件的操作
    day08-字符编码
    day07补充-数据类型总结及拷贝
    day07-列表类型/元组类型/字典类型/集合类型内置方法
    auth-booster配置和使用(yii1.5)
    yii中常用路径
    yii中 columnszii.widgets.grid.CGridView
    yii框架widget和注册asset的例子
    yii后台模板标签
    yii中获取当前模块,控制器,方法
  • 原文地址:https://www.cnblogs.com/liuhui-xzz/p/11014001.html
Copyright © 2011-2022 走看看