CentOS 5.5 64位
php-5.3.6
yum install gcc gcc++ gcc7 libxml2-devel libjpeg-devel libpng-devel libtiff-devel fontconfig-devel freetype-devel libXpm-devel gettext-devel curl curl-devel pam-devel e2fsprogs-devel krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
yum install mysql*
chkconfig mysqld on
chkconfig --list mysqld
cd /usr/bin
./mysql_install_db
/usr/bin/mysqladmin -u root password 'root'
wget http://cn.php.net/distributions/php-5.3.6.tar.gz
wget http://xcache.lighttpd.net/pub/Releases/1.3.1/xcache-1.3.1.tar.gz
wget http://nginx.org/download/nginx-1.0.0.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz
tar -zxvf php-5.3.6.tar.gz
./configure --prefix=/usr/local/php --enable-fpm --with-gd --with-mysql=mysqlnd --with-mysqli=mysqlnd --enable-mbstring --with-curl --enable-mbregex --enable-exif --enable-ftp --enable-sockets
make
make test
make install
cp /usr/local/src/php-5.3.6/sapi/fpm/init.d.php-fpm.in /etc/init.d/php-fpm
chmod a+x /etc/init.d/php-fpm
tar -zxvf xcache-1.3.1.tar.gz
/usr/local/php/bin/phpize
./configure --enable-xcache --with-php-config=/usr/local/php/bin/php-config
make
make test
make install
tar -zxvf pcre-8.10.tar.gz
tar -zxvf nginx-1.0.0.tar.gz
cd nginx-1.0.0
./configure --prefix=/usr/local/nginx --with-pcre=/usr/local/src/pcre-8.10
make
make install
评论读取中...