Tengine1.5.1 CentOS 5.10应用

Tengine/Nginx
module library
gzip zlib
rewrite pcre
ssl openssl
the HTTP XSLT module 

yum install libxml2-devel

yum install libxslt-devel

   
   
   
   
   
   
   
   
   
   
   
   
   
   
   

1. LNMP服务(CentOS 5.10 + Tengine1.5.1 + php5.4.7 + MySql )

 源代码编译安装Tengine1.5.1

源代码编译安装php5.4.7

wget http://cn2.php.net/distributions/php-5.4.7.tar.gz
tar zvxf php-5.4.7.tar.gz
cd php-5.4.7
./configure --prefix=/usr/local/php --enable-fpm --with-curl --enable-sockets --with-mysql --with-mysqli --with-pcre-regex
#期间可能会有配置错误,一般按照提示,安装相应库的-devel版本即可。可以参考《http://www.zhuoda.org/xiezhi/103050.html》
make all install
#配置php-fpm
cd /usr/local/php/
cp php-fpm.conf.default php-fpm.conf
#调整php-fpm.conf中的user和group,使得和系统中已有的user和group相一致。
问题:

nginx: [emerg] load module "/usr/local/nginx/modules//ngx_http_fastcgi_module.so" failed (/usr/local/nginx/modules//ngx_http_fastcgi_module.so: cannot restore segment prot after reloc: Permission denied) in /usr/local/nginx/conf/nginx.conf:21

解决方法:

chcon -t texrel_shlib_t /usr/local/nginx/modules//ngx_http_fastcgi_module.so 

问题:

解决方法: