Install PHP5.6 instance on CentOS

小云云
Release: 2023-03-21 17:26:02
Original
2363 people have browsed it

This article mainly shares with you CentOS installation PHP5.6 examples, hoping to help everyone.

Configure yum source
Add the epel and remi sources of CentOS 6.5

rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Copy after login

The source of CentOS 7.0

yum install epel-releaserpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Copy after login

Use the yum list command to view available Installed package (Packege)

yum list --enablerepo=remi --enablerepo=remi-php56 | grep php
Copy after login

Install PHP5.6

yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof
Copy after login

Use PHP command to check the version

php --version
Copy after login

The version installed here is PHP5. 6.34, careful users may have discovered that ZendGuardLoader has become Zend OPcahe.

Starting from PHP5.5, the PHP code cache has changed from APC to Zend OPcache.

If you configure nginx, you also need to install php-fpm

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
Copy after login

Start the PHP-FPM service on the CentOS 6 system

service php-fpm start
Copy after login

Related recommendations:

centOs install and build php environment

The above is the detailed content of Install PHP5.6 instance on CentOS. 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!