centos6.0 拷贝安装nginx+php方法

1、拷贝原来nginx与PHP编译后文件

2、安装libmcrypt

./configure
make
make install

3、安装libiconv.so.2

a) \\10.10.70.36\dev\middleware\nginx\libiconv-1.13.1.tar.gz
     b) ./configure
     c) make
     d) make install
     e) ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

4、安装memcached

a) yum -y install libmemcached-devel.x86_64
     b) unzip php-memcached-dev-php-memcachpined-v1.0.1-0-g011afc7.zip
     c) cd php-memcached-dev-php-memcached-43b5b5a/
     d) /opt/php/bin/phpize
     e) ./configure --with-php-config=/opt/php/bin/php-config
     f) Make
     g) Make install
     h) vim /opt/php/conf/php.ini
     i. 加入extension=memcached.so

5、安装APC

a) /opt/php/bin/phpize
​    b) ./configure --with-php-config=/opt/php/bin/php-config
​    c) Make
​    d) Make install

6、按提示新建日志目录

相关推荐