您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

centos php 5.4 安装教程

2025/11/22 6:24:25发布28次查看
centos php5.4安装方法:首先通过“yum install gcc -y yum install libicu-devel -y”等命令安装php5.4依赖;然后使用命令“make install”安装php5.4即可。
推荐:《php视频教程》 
centos7 安装php5.4.45
 安装php5.4.45依赖
yum install gcc -yyum install libicu-devel -y yum install glibc-headers -yyum install gcc-c++ -yyum install -y epel-releaseyum install php-mcrypt libmcrypt libmcrypt-devel
两个不能一起安装,因为centos6默认的yum源没有 libmcrypt-devel这个包,只能借助epel的yum源,所以先安装epel,再安装
libmcrypt。
./configure --prefix=/usr/local/php54 --with-config-file-path=/usr/local/php54/etc --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-iconv-dir --with-freetype-dir=/usr/local/freetype --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --disable-fileinfo --enable-intl --with-xsl
make clean && make && make install
以上就是centos php 5.4 安装教程的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product