如何设置lnmp可以切换php版本
发布网友
发布时间:2022-04-06 02:50
我来回答
共1个回答
热心网友
时间:2022-04-06 04:19
1.说明:在linux下安装lnmp的默认php版本只能使用一个版本,如果有些网站需要低版本5.2或者高版本,那么如何做呢,
2.Lnmp安装时候默认选择了php5.3,但是其中某个网站需要php5.5
3.编译安装php5.5
(a)安装必要软件
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum groupinstall 'Development Tools'
yum install libmhash-devel
yum install libmhash
yum install libicu-devel
yum -y install krb5*
yum install -y gcc gcc-c++ make gmp-devel libc-client-devel zlib zlib-devel pcre pcre-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
(b)安装libiconv
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz希望能帮到你,我现在后盾人平台自己学习呢,加油吧(~Q~;)