centos php 5.4 安装教程-PHP问题

资源魔 40 0

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 -y
yum install libicu-devel -y 
yum install glibc-headers -y
yum install gcc-c++  -y
yum install -y epel-release
yum  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 装置教程的具体内容,更多请存眷资源魔其它相干文章!

标签: php php教程 Centos php故障解决 php使用问题

抱歉,评论功能暂时关闭!