centos php 5.4 installation tutorial

藏色散人
Release: 2023-03-06 16:16:02
Original
2836 people have browsed it

centos php5.4 installation method: First install php5.4 dependencies through commands such as "yum install gcc -y yum install libicu-devel -y"; then use the command "make install" to install php5.4 .

centos php 5.4 installation tutorial

Recommended: "PHP Video Tutorial"

centos7 Install php5.4.45

Installing php5.4.45 depends on

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
Copy after login

The two cannot be installed together because the default yum source of CentOs6 does not have the libmcrypt-devel package. You can only use the yum source of epel, so install epel first, and then install

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
Copy after login

make clean && make && make install

The above is the detailed content of centos php 5.4 installation tutorial. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!