编译php5 代码: '--with-libxml-dir=/usr/include/libxml2' '--with-config-file-path=/usr/local/php/etc/' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-gd' '--enable-gd-native-ttf' '--with-zlib' '--with-mcrypt' '--with-pdo-mysql=/usr/local/mysql' '--enable-shmop' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zip' '--with-xmlrpc' '--enable-fpm' '--enable-mbstring' '--with-zlib-dir' '--with-bz2' '--with-curl' '--enable-exif' '--enable-ftp' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-freetype-dir=/usr/lib' '--with-iconv' '--enable-xml' '--enable-bcmath' '--enable-sysvsem' '--enable-inline-optimization' '--with-curlwrappers' '--enable-mbregex' '--with-openssl' '--enable-pcntl' '--with-gettext' '--enable-session '--with-litespeed'
http://www.linuxidc.com/Linux/2012-02/53097.htm http://admclub.com/view/使用google-perftools优化nginx在高并发时的性能 http://download.savannah.gnu.org/releases/libunwind/ https://code.google.com/p/gperftools/downloads/list
1. go through GUI compile to the last step (prior to run '/usr/local/lsws/phpbuild/buildphp_manual_run.sh') 2. check the /usr/local/lsws/phpbuild/buildphp_manual_run.sh script, look for something that it tries to run, such as '/usr/local/lsws/phpbuild/buildphp_1307577524.x.install.sh 1> /usr/local/lsws/phpbuild/buildphp_1307577524.x.log 2>&1'. 3. edit script /usr/local/lsws/phpbuild/buildphp_1307577524.x.install.sh: insert "EXTRA_LIBS=-lresolv" prior to "./configure '--prefix=/usr/local/lsws/lsphp5' ... ". make it look like "EXTRA_LIBS=-lresolv ./configure '--prefix=/usr/local/lsws/lsphp5' ..." 4. run '/usr/local/lsws/phpbuild/buildphp_manual_run.sh'.