查看php-fpm编译参数,备忘--nginx+php-fpm+mysql apache+php编译参数

经常安装这些东东,CentOS5.6上编一次,6.3又编译一次,这次6.5上又要编译一次。每次编译都要去翻一遍编译参数,不行了,这次一定要记录一下。

nginx安装

yum install pcre-devel.x86_64 openssl-devel.x86_64

useradd www -s /sbin/nologin

./configure –user=www –group=www –prefix=/opt/nginx –conf-path=/opt/conf/nginx/nginx.conf –with-http_stub_status_module –with-http_ssl_module –with-http_sub_module –with-md5=/usr/lib –with-sha1=/usr/lib –http-fastcgi-temp-path=/opt/nginx/fastcgi-temp –http-proxy-temp-path=/opt/nginx/proxy-temp –http-client-body-temp-path=/opt/nginx/body-temp –with-http_gzip_static_module

mysql安装

useradd mysql

yum install gcc-c++.x86_64 gperf.x86_64 ncurses-devel.x86_64 readline-devel.x86_64 libaio-devel.x86_64 cmake

/usr/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STO

RAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_FEDERATED_STOR

AGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DWITH_SSL=system -DWITH_ZLIB=system -DENABLED_LOCAL_INFILE=1 -DDEF

AULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=mysql

cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql -DWITH_MYISAM_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1

-DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_MEMORY_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -

DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DWITH_SSL=system -DWITH_ZLIB=system -DENABLED_LOCAL_INFILE=1 -DDEFAULT_CHARSET=u

tf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DMYSQL_TCP_PORT=3306 -DMYSQL_USER=mysql

php 安装:

yum install -y libxml2-devel.x86_64 libjpeg-devel.x86_64 libcurl-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 libmcrypt.x86_64 libmcrypt-devel.x86_64 mhash-devel.x86_64

‘./configure’ ‘–prefix=/opt/php’ ‘–with-config-file-path=/opt/conf/php’ ‘–enable-cgi’ ‘–with-pear=/opt/php/pear’ ‘–enable-fpm’ ‘–with-fpm-conf=/opt/conf/php/php-fpm.conf’ ‘–with-fpm-log=/opt/conf/php/php-fpm.log’ ‘–with-fpm-pid=/opt/conf/php/php-fpm.pid’ ‘–enable-gd-native-ttf’ ‘–with-gd’ ‘–with-pdo-mysql=/opt/mysql’ ‘–with-mysql=/opt/mysql’ ‘–with-mysqli=/opt/mysql/bin/mysql_config’ ‘–with-curl’ ‘–with-zlib’ ‘–with-openssl’ ‘–enable-mbstring’ ‘–enable-exif’ ‘–disable-debug’ ‘–disable-rpath’ ‘–without-pdo-sqlite’ ‘–without-sqlite’ ‘–enable-sockets’ ‘–enable-pcntl’ ‘–enable-bcmath’ ‘–enable-zip’ ‘–enable-ftp’ ‘–enable-soap’ ‘–with-mcrypt’ ‘–with-mhash’ ‘–enable-zip’

apache+php 安装:

#apache

yum install -y zlib-devel.x86_64 openssl-devel.x86_64

./configure –prefix=/opt/latop/phpfront3/ –enable-modules=all –enable-mods-shared=all –enable-rewrite –enable-so –enable-http –enable-ssl –with-libdir=lib64

#php

yum install -y libxml2-devel.x86_64 libjpeg-devel.x86_64 libcurl-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 libmcrypt.x86_64 libmcrypt-devel.x86_64 mhash-devel.x86_64

./configure –prefix=/opt/latop/phpfront3/php –with-config-file-path=/opt/latop/phpfront3/conf –disable-debug –with-apxs2=/opt/latop/phpfront3/bin/apxs –enable-cli –enable-soap –with-gd –enable-gd-native-ttf –with-iconv –with-openssl –with-pic –enable-sockets –with-curl –enable-mbstring –with-zlib –with-pdo-mysql=/opt/mysql –with-mysqli=/opt/mysql/bin/mysql_config –enable-pcntl –enable-bcmath –enable-zip –with-mcrypt –with-mhash –with-libdir=/usr/lib64

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值