ngnix + php-fpm 安装

yum install libxml2-devel
yum install bzip2-devel
yum install curl-devel
yum install libmcrypt
yum install libmcrypt-devel
yum install postgresql-devel

5.2
./configure --prefix=/usr/local/php --enable-fastcgi --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --with-pgsql --with-curl --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-xml --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-xslt --enable-memcache --enable-zip --with-pcre-regex

5.3
./configure --prefix=/usr/local/php --enable-fpm --with-mcrypt --with-zlib --enable-mbstring --disable-pdo --with-pgsql --with-curl --disable-debug --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex

ldconfig -p | grep ltdl //发现存在,所以已安装,只是因为名字的关系,找不到
cd /usr/lib
ln -s libltdl.so.3.1.4 libltdl.so
ldconfig
make clean
make
make install

cd /usr/local/php/bin
yum install autoconf
./pecl install memcache

yum install libevent-devel

#./configure --prefix=/usr/local/libevent
./configure --prefix=/usr/local/memcached  //安装memcached

/usr/local/memcached/bin/memcached -d -m 32 -l 127.0.0.1 -p 11211 -u root

yum -y install pcre-devel
./configure --prefix=/usr/local/nginx --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module
make & make install

ln -s /usr/local/nginx/conf /etc/nginx
yum install mysql-devel

./configure --with-php-config=/usr/local/php/bin/php-config
cp mysql.so /usr/lib/php/modules/

你可能感兴趣的:(服务器,module)