博客首页
  • 用户名
  • 密码
  • 验证码
  • 网校首页
  • 博客首页
  • 论坛首页
caoyezhou
千江有水千江月 万里无云万里天
个人资料
caoyezhou 性别:男    
博客文章
2011年04月18日 11:36

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

未分类 | 阅读(181) | 收藏(0) | 评论(0) | 打印

 评论读取中...
  • 发评论 (限500字以内)
  • 昵称:
  • 验证码:
  •  



以上网友发言只代表其个人观点,不代表中华会计网校博客的观点或立场。
array(2) { ["submit"]=> string(0) "" ["s"]=> string(0) "" } here