Apache + PHP5 + memcache + ice + fastcgi

Apache:

 

./configure --with-pcre=/usr --enable-rewrite --enable-cgi  --enable-modules=all --enable-so --prefix=/opt/apps/apache2 CFLAGS="-DBIG_SECURITY_HOLE"

 

PS: -DBIG_SECURITY_HOLE 允许以root用户运行apache

 

PHP5:

./configure --prefix=/data/apache2/php5 --with-apxs2=/data/apache2/bin/apxs --with-libdir=lib64 --enable-fastcgi --with-gd=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-ttf --with-kerberos --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --with-pcre-dir=/usr --enable-ftp --with-gettext --enable-mbstring --with-mysql '--with-mysqli --with-readline --enable-shmop --with-snmp --enable-soap --enable-sockets --enable-sysvshm --enable-sysvsem --enable-sysvmsg --with-xmlrpc --with-iconv --with-xsl --enable-zip --enable-zend-multibyte --with-freetype-dir=/usr

 

PS: 64位系统中使用 --with-libdir=lib64

 

LoadModule php5_module        modules/libphp5.so

AddType application/x-httpd-php .php

 

php安装memcache支持

/data/apache2/php5/bin/phpize

./configure --with-php-config=/opt/apps/apache2/php5/bin/php-config --with-apxs=/opt/apps/apache2/bin/apxs --enable-memcache

 

fastcgi:

LoadModule fastcgi_module     modules/mod_fastcgi.so

AddHandler fastcgi-script .do
ScriptAlias /fcgi/ /data/htdocs/oms/fcgi/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值