http://de.php.net/get/php-5.3.16.tar.gz/from/us.php.net/mirror
http://no2.php.net/get/php-5.4.6.tar.gz/from/us.php.net/mirror
tar xvfz php-5.4.6.tar.gz // tar -jxvf php-5.4.6.tar.bz2
cd php*
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysqld --with-openssl --enable-fpm --enable-sockets --enable-sysvshm --with-mysqli=/usr/local/mysqld/bin/mysql_config --enable-mbstring --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib-dir --with-libxml-dir=/usr --enable-xml --with-mhash --with-mcrypt --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/etc --with-bz2 --with-curl
make
make install
cp php.ini-production /usr/local/php/etc/php.ini
cp sapi/fpm/init.d.php-fpm /etc/rc.d/init.d/php-fpm
chmod +x /etc/rc.d/init.d/php-fpm
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
vim /usr/local/php/etc/php-fpm.conf
pid = run/php-fpm.pid
pm.max_children = 50 最多多少子进程
pm.start_servers = 5 刚开始启动多少进程
pm.min_spare_servers = 2 最少多少空闲进程
pm.max_spare_servers = 8 最多多少空闲进程
service php-fpm start
http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
yum install subversion -y
cd php-5.3.x
svn co http://svn.php.net/repository/php/php-src/trunk/sapi/fpm sapi/fpm
./buildconf --force
./configure --enable-fpm ...your other configure options, etc...
make && make install
http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.27.tar.gz/from/http://cdn.mysql.com/
/usr/sbin/groupadd -r mysql
/usr/sbin/useradd -g mysql mysql
useradd -g mysql -r -s /sbin/nologin
tar zxvf mysql-5.5.27.tar.gz
cd mysql-*/
cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysqld -DINSTALL_DATADIR=/usr/local/mysqld/database -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DEXTRA_CHARSETS=all -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 -DWITH_MYISAM_STORAGE_ENGINE=1
make
make install
./configure --prefix=/usr/local/mysqld/ --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-plugins=partition,innobase,myisammrg
make && make install
chmod +w /usr/local/mysqld
chown -R mysql:mysql /usr/local/mysqld
scripts/mysql_install_db --user=mysql --datadir=/usr/local/mysqld/data
default-storage-engine=MyISAM
export PATH=/usr/local/mysqld/bin/:$PATH
echo '/usr/local/mysqld/lib/' > /etc/ld.so.conf
ldconfig
bin/mysqladmin -u root password '111000'