接上篇:http://www.cnblogs.com/antarctican/p/3748427.html (安装Mysql)
下载PHP。 我选择了日本线路,比内地和台湾线路快得多。
[root@localhost src]# wget -c http://jp2.php.net/distributions/php-5.3.28.tar.gz
 4. 安装 tengine 2.0.4
查看 version时, 提示 libssl.so.1.0.0 找不到
| 
       1 
      2  | 
    
      [root@localhost tengine]# sbin/nginx -Vsbin/nginx: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory | 
ldd 查看 ,为 not found
| 
       1 
      2 
      3 
      4 
      5 
      6 
      7 
      8 
      9 
      10 
      11 
      12  | 
    
      [root@localhost tengine]# ldd sbin/nginx    linux-gate.so.1 =>  (0x00880000)    libpthread.so.0 => /lib/libpthread.so.0 (0x00f05000)    libdl.so.2 => /lib/libdl.so.2 (0x001ef000)    libcrypt.so.1 => /lib/libcrypt.so.1 (0x00a0b000)    libpcre.so.0 => /lib/libpcre.so.0 (0x00c21000)    libssl.so.1.0.0 => not found    libcrypto.so.1.0.0 => not found    libz.so.1 => /lib/libz.so.1 (0x001f4000)    libc.so.6 => /lib/libc.so.6 (0x00208000)    /lib/ld-linux.so.2 (0x00d5b000)    libfreebl3.so => /lib/libfreebl3.so (0x00748000) | 
这时在 /etc/ld.so.conf.d/ 新建一个.conf 的文件,内容为 libssl 的位置:
| 
       1  | 
    
      [root@localhost tengine]# cd /etc/ld.so.conf.d | 
| 
       1  | 
    
      [root@localhostld.so.conf.d]# touch www-libs.conf             // *.conf 自动载入 | 
| 
       1  | 
    
      [root@localhostld.so.conf.d]# echo ‘/usr/local/lib‘ > www-libs.conf    // 注:/usr/local/lib 为我 libssl.so.1.0.0 的位置 | 
| 
       1  | 
    
      [root@localhostld.so.conf.d]# ldconfig | 
现在可以看到 nginx的版本及模块信息了
0R)X`9F.jpg)
[LTMP搭建] Centos 6.5 安装配置 PHP,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/antarctican/p/3752812.html