LNAMP|LAMP|PHP团队(多人)开发环境搭建配置教程

    经常听到团队的小伙伴说:这个版本的扩展真难找,在本地运行正常的代码,上线之后却运行异常…诸如此类的问题大多是因为系统差异、扩展缺失、版本差异引起的。要解决此类问题搭建一个和线上一致的多人开发环境即可解决。
    思路:搭建一台本地开发服务器,开发服务器和线上服务器环境保持一致,用samba服务映射到本地电脑磁盘,团队中所有人的开发代码都存储在开发机上,所有人的代码都是在开发机器上运行;团队成员无需再单独搭建开发环境,只需要挂载远程目录到本地磁盘,加上DNS解析,开发机上apache根据域名绑定对应的目录即可。
搭建过程:
1.一台PC主机,U盘安装CentOS5.11;
2.安装lamp或lnamp或lnmp环境,网上有很多关于LNAMP或LAMP组合安装的教程(我写过的另一篇博文,有需要的请移步->:LAMP安装手记(CentOS6.4+Apache-2.2.22+Mysql-5.1.63+PHP-5.2.17+phpmyadmin-3.4.10.2+ZendDebug),安装过程不再赘述,本文主要讲如何配置多人开发环境。
3.配置步骤
修改防火墙规则
vi /etc/sysconfig/iptables
添加如下规则
#samba
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
service iptables restart
4.安装samba
yum install samba system-config-samba samba-client samba-common
编辑samba配置文件
vi /etc/samba/smb.conf
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
        create mode = 0755
        force create mode = 0755
        directory mode = 0755
        force directory mode = 0755
;       valid users = %S
;       valid users = MYDOMAIN\%S
[share]
        workgroup = www
        netbios name = www
        path = /home/share
        browseable = yes
        writeable = yes

service smb restart
[home]目录是每个samba账号对应的个人目录,就是/home下的个人目录,这里也就是每个账号对应的挂载目录;
[share]是共享目录。

简单介绍一下这几个参数的含义:

  • create mode – 这个配置定义新创建文件的属性。Samba在新建文件时,会把dos文件的权限映射成对应的unix权限,在映射后所得的权限,会与这个参数所定义的值进行与操作。然后再和下面的force create mode进行或操作,这样就得到最终linux下的文件权限。
  • force create mode – 见上面的描述。相当于此参数所设置的权限位一定会出现在文件属性中。
  • directory mode – 这个配置与create mode参数类似,只是它是应用在新创建的目录上。Samba在新建目录时,会把dos–>linux映射后的文件属性,与此参数所定义的值相与,再和force directory mode相或,然后按这个值去设置目录属性。
  • force directory mode – 见上面的描述。相当于此参数中所设置的权限位一定会出现在目录的属性中。

说明一点,上面的create mode和create mask参数是同义词,用哪个都可以;而directory mode和directory mask参数是相同的。

创建账号:
useradd zhangsan   
passwd zhangsan
chmod -R 0755 /home/zhangsan
smbpasswd -a zhangsan                         创建samba账号
service smb reload

测试samba 快捷键 windows(开始键)+R 在弹出的框中输入 \\samba服务器地址  然后回车 输入账号密码 如下图所示即为搭建配置成功

映射磁盘驱动器:

映射成功。

5.配置apache

编辑apache配置文件httpd.conf 添加
vi httpd.conf
Include /usr/local/apache/conf/vhost/*.conf
在/usr/local/apache/conf/vhost目录中添加配置文件
vi test.data.house.sina.com.cn.conf 
添加如下内容
<VirtualHost *:88>
        ServerName test.house.sina.com.cn
        #ServerAlias localhost
        DocumentRoot /home/yangyi/test.house.sina.com.cn
        DirectoryIndex index.php index.html index.htm
        <Directory /home/yangyi/test.house.sina.com.cn>
                Options +Includes -Indexes
                AllowOverride All
                Order Deny,Allow
                Allow from All
                php_admin_value open_basedir /home/yangyi/test.house.sina.com.cn:/tmp:/proc
        </Directory>
</VirtualHost>
重启apache
service httpd restart
本地添加DNS解析
192.168.1.110 test.house.sina.com.cn

在映射目录创建文件夹 添加测试文件 如下所示:

test_web_service

搭建配置成功!

参考:

快速配置 Samba 将 Linux 目录映射为 Windows 驱动器,用于跨平台编程

CentOS6.3 Samba安装配置、多用户、加域

Centos搭建Samba

设置Samba服务器中新建文件/目录的权限

附可能遇到的问题及解决办法:

<1>.httpd: Could not reliably determine the server’s fully qualified domain name

    http://blog.csdn.net/aidenliu/article/details/6589040

<2>.防火墙配置

    http://bbs.51cto.com/thread-830123-1.html

<3>.PHP 配置文件中open_basedir选项作用

    http://www.jb51.net/article/19231.htm

<4>.phpnow:open_basedir restriction in effect;file is not within the allowed path

    http://blog.sina.com.cn/s/blog_6328fd3a0100rh5y.html

<5>.PHP 错误日志报告等级

    http://www.cnblogs.com/lost-1987/articles/2982380.html

<6>.PHP Fatal error: require_once(): Failed opening required 

    https://bbs.archlinux.org/viewtopic.php?id=57877 (参考这个解决了问题)

    http://superuser.com/questions/590208/phpmyadmin-symlinks-error-after-ubuntu-upgrade

    http://kb.odin.com/en/6065

未经授权请勿转载:怡然之乐 – FineYi

Linux|CentOS+Nginx+Apache+MySQL+PHP+Tomcat的配置教程,完美支持PHP、JAVA

网上有很多关于LNAMP或LAMP组合安装的教程(我写过的另一篇博文,有需要的请移步->:LAMP安装手记(CentOS6.4+Apache-2.2.22+Mysql-5.1.63+PHP-5.2.17+phpmyadmin-3.4.10.2+ZendDebug),安装过程不再赘述,本文主要讲如何在LNAMP环境下安装JDK+Tomcat6使同一台服务器同时支持PHP和JAVA语言。
服务器系统和各软件版本如下所示:
[root@E ~]# uname -a 
Linux E.CentOS6.4 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 
[root@E ~]# /www/wdlinux/nginx/sbin/nginx -v 
nginx version: nginx/1.2.9 
[root@E ~]# /www/wdlinux/httpd-2.2.24/bin/httpd -v 
Server version: Apache/2.2.24 (Unix) 
Server built: Oct 30 2014 00:17:07 
[root@E ~]# rpm -qa |grep mysql 
mysql-libs-5.1.66-2.el6_3.x86_64 
[root@E ~]# /www/wdlinux/php/bin/php -v 
Cannot load Zend Extension Manager - it was built with configuration 1.2.0, whereas running engine is API220090626,NTS 
PHP 5.3.27 (cli) (built: Oct 30 2014 00:30:02) 
Copyright (c) 1997-2013 The PHP Group 
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
1
开始安装jdk:
列出yum库可用的jdk安装包
[root@E ~]# yum -y list java* 
Loaded plugins: fastestmirror 
Loading mirror speeds from cached hostfile 
* base: mirror.bit.edu.cn 
* extras: mirror.bit.edu.cn 
* rpmforge: mirrors.neusoft.edu.cn 
* updates: mirrors.neusoft.edu.cn 
base | 3.7 kB 00:00 
extras | 3.3 kB 00:00 
rpmforge | 1.9 kB 00:00 
updates | 3.4 kB 00:00 
updates/primary_db | 171 kB 00:00 
Available Packages 
java-1.5.0-gcj.x86_64 1.5.0.0-29.1.el6 base 
java-1.5.0-gcj-devel.x86_64 1.5.0.0-29.1.el6 base 
java-1.5.0-gcj-javadoc.x86_64 1.5.0.0-29.1.el6 base 
java-1.5.0-gcj-src.x86_64 1.5.0.0-29.1.el6 base 
java-1.6.0-openjdk.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates 
java-1.6.0-openjdk-demo.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates 
java-1.6.0-openjdk-devel.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates 
java-1.6.0-openjdk-javadoc.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates 
java-1.6.0-openjdk-src.x86_64 1:1.6.0.33-1.13.5.0.el6_6 updates 
java-1.7.0-openjdk.x86_64 1:1.7.0.71-2.5.3.1.el6 updates 
java-1.7.0-openjdk-demo.x86_64 1:1.7.0.71-2.5.3.1.el6 updates 
java-1.7.0-openjdk-devel.x86_64 1:1.7.0.71-2.5.3.1.el6 updates 
java-1.7.0-openjdk-javadoc.noarch 1:1.7.0.71-2.5.3.1.el6 updates 
java-1.7.0-openjdk-src.x86_64 1:1.7.0.71-2.5.3.1.el6 updates 
java-1.8.0-openjdk.x86_64 1.8.0.25-1.b17.el6 updates 
java-1.8.0-openjdk-demo.x86_64 1.8.0.25-1.b17.el6 updates 
java-1.8.0-openjdk-devel.x86_64 1.8.0.25-1.b17.el6 updates 
java-1.8.0-openjdk-headless.x86_64 1.8.0.25-1.b17.el6 updates 
java-1.8.0-openjdk-javadoc.noarch 1.8.0.25-1.b17.el6 updates 
java-1.8.0-openjdk-src.x86_64 1.8.0.25-1.b17.el6 updates 
java_cup.x86_64 1:0.10k-5.el6 base 
java_cup-javadoc.x86_64 1:0.10k-5.el6 base 
java_cup-manual.x86_64 1:0.10k-5.el6 base 
javacc.x86_64 4.1-0.5.el6 base 
javacc-demo.x86_64 4.1-0.5.el6 base 
javacc-manual.x86_64 4.1-0.5.el6 base 
javassist.noarch 3.9.0-6.el6 base 
javassist-javadoc.noarch 3.9.0-6.el6 base
2
选择jdk1.6安装
[root@E ~]# yum -y install java-1.6.0-openjdk*
其它版本请自己修改对应的版本号安装
检测是否安装成功
[root@E ~]# java -version 
java version "1.6.0_33" 
OpenJDK Runtime Environment (IcedTea6 1.13.5) (rhel-1.13.5.0.el6_6-x86_64) 
OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
3
安装tomcat6
[root@E ~]# yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps
安装成功 启动
[root@E ~]# service tomcat6 start
其它命令:service tomcat6 {start|stop|restart|condrestart|try-restart|reload|force-reload|status|version}
启动成功,访问测试:http://ip:8080
如下图所示即为安装成功:
5
 
配置nginx和tomcat,使其不加端口号,直接通过域名也能访问
首先增加解析,使域名指向到主机IP,本地可以直接改host实现
6
解析正常
不加8080端口访问
7
添加8080端口访问
8
接下来修改nginx和tomcat的配置使其不加端口号也能访问到tomcat的webservice
[root@E ~]# cd /www/wdlinux/nginx/conf/vhost/
[root@E ~]# vi myweb.com.conf
添加如下内容
server { 
listen 80;
server_name www.myweb.com myweb.com;
#root /www/web/master_myweb_com/public_html;
index index.html index.jsp index.htm;
error_page 400 /errpage/400.html;
error_page 403 /errpage/403.html;
error_page 404 /errpage/404.html;
error_page 405 /errpage/405.html;
location ~ \.jsp$ {
proxy_pass http://127.0.0.1:8080;
include naproxy.conf;
}
location / {
try_files $uri @tomcat;
}
location @tomcat {
proxy_pass http://127.0.0.1:8080;
include naproxy.conf;
    }
    access_log /www/web_logs/myweb_com_access.log wwwlogs;
    error_log /www/web_logs/myweb_com_error.log;
}
重新加载nginx配置文件或重启nginx
[root@E vhost]# service nginxd reload 
nginx: the configuration file /www/wdlinux/nginx/conf/nginx.conf syntax is ok 
nginx: configuration file /www/wdlinux/nginx/conf/nginx.conf test is successful
不加端口号访问测试:
9
至此nginx已经成功将来自myweb.com域名的请求代理到8080端口
如果需要配置多域名的话,还需要修改tomcat虚拟主机配置文件
默认配置文件路径:/etc/tomcat6/
默认项目路径:/var/lib/tomcat6/webapps/
tomcat默认指向/var/lib/tomcat6/webapps/ROOT目录
创建新项目目录,这里直接复制ROOT项目,进行修改
[root@E webapps]# pwd 
/var/lib/tomcat6/webapps
[root@E webapps]# chown -R root myweb.com
修改权限,使新项目权限和默认项目权限一致
[root@E webapps]# chgrp -R tomcat myweb.com
[root@E webapps]# ll 
总用量 24 
drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 examples 
drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 host-manager 
drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 manager 
drwxr-xr-x 3 root tomcat 4096 10月 30 22:48 myweb.com 
drwxrwxr-x 3 root tomcat 4096 10月 30 22:06 ROOT 
drwxrwxr-x 5 root tomcat 4096 10月 30 22:06 sample
[root@E myweb.com]# cd myweb.com/
[root@E myweb.com]# rm -f index.html
[root@E myweb.com]# vi index.jsp
写入:WebService is Tomcat
不要忘记删除ROOT项目或者对它重命,否则新项目不生效
[root@E webapps]# mv ROOT/ ROOT.BAK


修改tomcat虚拟主机配置
[root@E myweb.com]# vi /etc/tomcat6/server.xml
在最下面<Host></Host>标签后面添加如下内容
<!--myweb.com host config--> 
<Host name="www.myweb.com" appBase="webapps" 
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="/" reloadable="true" docBase="myweb.com"/>
<Alias>myweb.com</Alias>
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
</Host>
如下图所示
10
重启tomcat,测试http://myweb.com
[root@E myweb.com]# service tomcat6 restart
11
success!
转载请注明出处:怡然之乐 – FineYi

LAMP安装手记(CentOS6.4+Apache-2.2.22+Mysql-5.1.63+PHP-5.2.17+phpmyadmin-3.4.10.2+ZendDebug)

LAMP安装手记(CentOS6.4+Apache-2.2.22+Mysql-5.1.63+PHP-5.2.17+phpmyadmin-3.4.10.2+ZendDebug)

rpm -e httpd

rpm -e mysql

rpm -e php

yum -y remove httpd php mysql-server mysql php-mysql&nbsp;

setenforce 0

yum -y install gcc gcc-c++&nbsp; make automake autoconf kernel-devel ncurses-devel libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel&nbsp; pcre-devel libtool-libs freetype-devel gd zlib-devel file bison patch mlocate flex diffutils&nbsp; &nbsp;readline-devel glibc-devel glib2-devel bzip2-devel gettext-devel libcap-devel libmcrypt-devel wget&nbsp;unzip&nbsp;

wget -c http://archive.apache.org/dist/httpd/httpd-2.2.22.tar.gz

wget -c&nbsp;http://dl.mysql.cn/mysql5/5.1/mysql-5.1.63.tar.gz

wget -c http://iweb.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.4.10.2/phpMyAdmin-3.4.10.2-all-languages.tar.gz

wget -c http://us2.php.net/get/php-5.2.17.tar.gz/from/am.php.net/mirror

tar xzf httpd-2.2.22.tar.gz

tar xzf mysql-5.1.63.tar.gz

tar xzf php-5.2.17.tar.gz

tar xzf phpMyAdmin-3.4.10.2-all-languages.tar.gz

cd /tmp/httpd-2.2.22

./configure --prefix=/usr/local/apache --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared&nbsp; --enable-headers=shared --enable-rewrite=shared --enable-static-support

make

make install

cp build/rpm/httpd.init /etc/init.d/httpd //使用init脚本管理httpd

chmod 755 /etc/init.d/httpd //增加执行权限

chkconfig --add httpd&nbsp; //添加httpd到服务项

chkconfig&nbsp; httpd on&nbsp; &nbsp;//设置开机启动

ln -fs /usr/local/apache/ /etc/httpd

ln -fs /usr/local/apache/bin/httpd /usr/sbin/httpd

ln -fs /usr/local/apache/bin/apachectl /usr/sbin/apachectl

ln -fs /usr/local/apache/logs /var/log/httpd //设置软链接以适应init脚本

groupadd mysql

useradd -g mysql mysql

cd /tmp/mysql-5.1.63

./configure --prefix=/usr/local/mysql/ --localstatedir=/usr/local/mysql/data --without-debug --with-unix-socket-path=/tmp/mysql.sock --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler --with-extra-charsets=gbk,gb2312,utf8 --with-pthread

make

make install

cp support-files/my-medium.cnf /etc/my.cnf //复制配置文件夹my.cnf

/usr/local/mysql/bin/mysql_install_db --user=mysql&nbsp; //初始化数据库

chown -R root.mysql /usr/local/mysql

chown -R mysql /usr/local/mysql/data&nbsp;

cp /tmp/mysql-5.1.63/support-files/mysql.server /etc/rc.d/init.d/mysqld&nbsp; //init启动脚本

chown root.root /etc/rc.d/init.d/mysqld&nbsp;

chmod 755 /etc/rc.d/init.d/mysqld

chkconfig --add mysqld

chkconfig&nbsp; mysqld on

ln -s /usr/local/mysql/bin/mysql /usr/bin

ln -s /usr/local/mysql/bin/mysqladmin /usr/bin

service mysqld start

/usr/local/mysql/bin/mysqladmin -u root password '新密码'&nbsp; &nbsp;//设置root密码

安装PHP

cd /tmp

wget http://superb-dca2.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz

wget http://superb-dca2.dl.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz

wget http://superb-sea2.dl.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz

tar xzf libmcrypt-2.5.8.tar.gz

tar xzf mhash-0.9.9.9.tar.gz

tar xzf mcrypt-2.6.8.tar.gz

//安装libmcrypt

cd /tmp/libmcrypt-2.5.8

./configure --prefix=/usr

make && make install

//安装libmcrypt

cd /tmp/mhash-0.9.9.9

./configure --prefix=/usr

make && make install

//安装mcrypt

/sbin/ldconfig //搜索出可共享的动态链接库

cd /tmp/mcrypt-2.6.8

./configure

make && make install

解决可能出现的报错:

If configure fails try --with-jpeg-dir=<DIR>

configure: error: libpng.(a|so) not found.

解决:

yum install libpng libpng-devel

ln -s /usr/lib64/libjpeg.so /usr/lib/

ln -s /usr/lib64/libpng.so /usr/lib/

解决可能出现的libiconv报错

cd /tmp

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz

tar xzf libiconv-1.14.tar.gz

cd libiconv-1.14

./configure --prefix=/usr/local/libiconv

make && make install

cd /tmp/php-5.2.17

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-openssl --with-zlib --enable-bcmath --with-bz2 --with-curl --enable-ftp --with-gd --enable-gd-native-ttf --with-gettext --with-mhash --enable-mbstring --with-mcrypt --enable-soap --enable-zip --with-iconv=/usr/local/libiconv --with-mysql=/usr/local/mysql --without-pear

make

make install

cp php.ini-dist /usr/local/php/etc/php.ini //复制配置文件php.ini

修改apache配置文件:

在/etc/httpd/conf/httpd.conf文件中加入php文件类型解析:

vi /etc/httpd/conf/httpd.conf

添加

AddType application/x-httpd-php .php .phtml .inc

AddType application/x-httpd-php-source .phps

找到:

ServerName www.example.com:80

修改为:

ServerName localhost:80

service httpd restart &nbsp;//重启httpd

安装ZendOptimizer-3.3.9

64位:http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz

32位:http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

cd /tmp

wget&nbsp; http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz

tar xzf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz

cd /tmp/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/

mkdir -p /usr/local/Zend/lib/

cp ZendOptimizer.so /usr/local/Zend/lib

加载zendoptimizer,建立/etc/php.d/zend.ini文件,加入如下代码加载:

[zend]

zend_optimizer.optimization_level=15

zend_extension=/usr/local/Zend/lib/ZendOptimizer.so

service httpd restart

安装eAccelerator-0.9.6.1

cd /tmp

wget http://jaist.dl.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.zip

unzip eaccelerator-0.9.6.1.zip

cd eaccelerator-0.9.6.1

export PHP_PREFIX="/usr/local/php"

$PHP_PREFIX/bin/phpize

./configure -enable-eaccelerator=shared -with-php-config=$PHP_PREFIX/bin/php-config

make && make install

cd /tmp

mkdir eaccelerator

chmod 0777 eaccelerator

php zenddebugger 加载失败

用php -v 查看信息

[root@E modules]# php -v

Failed loading /usr/lib64/php/modules/ZendDebugger.so: libssl.so.0.9.8: cannot open shared object file: No such file or directory

Failed loading /usr/local/Zend/lib/ZendOptimizer.so: /usr/local/Zend/lib/ZendOptimizer.so: undefined symbol: zend_throw_exception_internal

Failed loading /usr/lib64/php/modules/ZendDebugger.so: libssl.so.0.9.8: cannot open shared object file: No such file or directory

Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0

Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0

PHP 5.3.3 (cli) (built: Nov 22 2013 10:59:29)

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

原因:因为最新的linux发行版本&nbsp;libssl&nbsp;和&nbsp;libcrypto&nbsp;已升级到1.0.0

解决:只要创建相应的软链接即可

[root@E modules]# ll /usr/lib64/libssl*

-rwxr-xr-x. 1 root root 221568 2鏈? 23 2013 /usr/lib64/libssl3.so

lrwxrwxrwx. 1 root root 16 11鏈?26 19:31 /usr/lib64/libssl.so -> libssl.so.1.0.1e

lrwxrwxrwx. 1 root root 16 11鏈?26 19:31 /usr/lib64/libssl.so.10 -> libssl.so.1.0.1e

-rwxr-xr-x. 1 root root 436984 12鏈? 4 2013 /usr/lib64/libssl.so.1.0.1e

建立软连接:

ln -s /usr/lib64/libssl.so.1.0.1e /usr/lib64/libssl.so.0.9.8

[root@E modules]# ll /usr/lib64/libcrypto*

lrwxrwxrwx. 1 root root 19 11鏈?26 19:31 /usr/lib64/libcrypto.so -> libcrypto.so.1.0.1e

lrwxrwxrwx. 1 root root 19 11鏈?26 19:31 /usr/lib64/libcrypto.so.10 -> libcrypto.so.1.0.1e

-rwxr-xr-x. 1 root root 1946880 12鏈? 4 2013 /usr/lib64/libcrypto.so.1.0.1e

建立软连接:

ln -s /usr/lib64/libcrypto.so.1.0.1e /usr/lib64/libcrypto.so.0.9.8

参考资料:

linux下让apache能够解析php: http://hi.baidu.com/dengyun0302/item/549840396caa7ffae6bb7a61

解决configure: error: libpng.(a|so) not found.:http://blog.csdn.net/alexdream/article/details/7408438

解决php zenddebugger 安装失败:http://blog.csdn.net/dragon8299/article/details/7175932

http://forums.zend.com/viewtopic.php?f=59&t=12423

http://blog.csdn.net/jianfyun/article/details/6434052

http://stackoverflow.com/questions/13467358/zend-debugger-will-not-load

http://forums.zend.com/viewtopic.php?f=57&t=4071

http://sourceforge.net/projects/eaccelerator/postdownload?source=dlp

mysql:http://download.softagency.net/MySQL/Downloads/MySQL-5.1/

mysql-5.1.63(gz)http://download.mysql.cn/src/2012/0531/5603.html

apache/httpd:http://archive.apache.org/dist/httpd/

http://www.zend.com/en/products/studio/downloads

转载请注明出处:怡然之乐 – FineYi