Detailed introduction to installing php7 on centos6.7

黄舟
Release: 2023-03-07 06:58:01
Original
1803 people have browsed it

The default version is too low, and manual installation is troublesome. If you want to use Yum installation, you can use the following solution:

1. Check the currently installed PHP package

yum list installed | grep php
Copy after login

If there is one To install PHP packages, firstdeletethem

 yum remove 
 php.x86_64 
 php-cli.x86_64 
 php-common.x86_64 
 php-gd.x86_64 
 php-ldap.x86_64 
 php-mbstring.x86_64 
 php-mcrypt.x86_64 
 php-mysql.x86_64 
 php-pdo.x86_64
Copy after login

CentOs 6.x

  rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install 
php70w.x86_64 
php70w-cli.x86_64 
php70w-common.x86_64 
php70w-gd.x86_64 
php70w-ldap.x86_64 
php70w-mbstring.x86_64 
php70w-mcrypt.x86_64 
php70w-mysql.x86_64 
php70w-pdo.x86_64
Copy after login

4. Install PHP FPM

yum install php55w-fpm 
yum install php56w-fpm 
yum install php70w-fpm
yum install php70w-devel
yum install gcc-c++
yum install gcc
yum install libtool
php -dvld.active=1 test.php
Copy after login

Related articles:

Mac uses the php installed by itself by default

Introduces in detail the installation of the php environment under Linux and the configuration of Nginx to support the php-fpm module (Figure Text)

Detailed introduction to the sample code for compiling and installing PHP7 on CentOS7 (picture)

The above is the detailed content of Detailed introduction to installing php7 on centos6.7. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template