Archive for July 20th, 2010

编译php-fpm cgi模式

./configure –prefix=/usr/local/php –with-mysqli=/usr/local/mysql/bin/mysql_config –with-mysql=/usr/local/mysql –with-config-file-path=/usr/local/php/etc –with-curl –with-zlib –enable-ftp  –with-mcrypt –enable-inline-optimization –disable-debug –with-gd –enable-gd-native-ttf –enable-gd-jis-conv –with-iconv-dir=/usr/local –with-freetype-dir=/usr/local/lib/freetype –with-jpeg-dir=/usr/local –with-png-dir=/usr/local –with-zlib –with-libxml-dir=/usr/local/lib/libxml –enable-xml –enable-exif –enable-soap –enable-zip –with-openssl –enable-mbstring –with-mhash –with-tidy –enable-fastcgi –enable-fpm –enable-force-cgi-redirect –enable-mbstring

make ZEND_EXTRA_LIBS=’-liconv’

make install

No Comments

libtidy 安装

  • wget http://tidy.sourceforge.net/src/old/tidy_src_051026.tgz
  • gunzip tidy-xxxx.tgz
  • tar -xvf tidy-xxxx.tar
  • cd tidy
  • sh build/gnuauto/setup.sh
  • 按照提示装就行了!

    No Comments

    Squid3.0与2.7的配置差异

    Squid3.0最重要的新特性:

    • Code converted to C++, with significant internal restructuring and rewrites.
    • ICAP implementation (RFC 3507 and www.icap-forum.org)
    • Edge Side Includes (ESI) implementation (www.esi.org)

    更多的请参考官方说明

    来说说配置方法的不同之处(只说我自己实际使用的)

    ./configure的配置项

    ./configure –prefix=/usr/local/squid –with-large-files –enable-useragent-log –enable-referer-log –enable-linux-netfilter –enable-x-accelerator-vary –disable-internal-dns –disable-mempools –with-maxfd=65535

    3.0版本去掉了以下选项:

    –enable-dlmalloc    不再需要 Read the rest of this entry »

    No Comments