Home > Backend Development > PHP Tutorial > Install php 7 under centos 7

Install php 7 under centos 7

不言
Release: 2023-03-24 08:32:01
Original
2325 people have browsed it

The content of this article is about installing php 7 under centos 7. It has a certain reference value. Now I share it with you. Friends in need can refer to it

1 Install nginx

 yum install nginx
Copy after login


2 Installepel source

  yum install epel-release
    wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm && rpm -Uvh remi-release-7.rpm
Copy after login

3 Install php

yum --enablerepo=remi-safe -y install php71

4 Install dependencies

yum install php71-php-mcrypt php71-php-mcrypt php71-php-json php71-php-mbstring php71-php-xml php71-php-soap php71-php-xmlrpc php71-php-simplexml
                      php71-php-curl php71-php-mysqlnd
Copy after login

5 Install php-fpm

 yum --enablerepo=remi-safe -y install php71-php-fpm
Copy after login

6 Set up startup

systemctl start php71-php-fpm     systemctl status php71-php-fpm.service
    systemctl enable php71-php-fpm
Copy after login

7 Configuration file

/etc/ opt/remi/php71/
/etc/opt/remi/php71/php-fpm.d/www.conf

Related recommendations:

centos7 YUM Install PHP5.6

Detailed explanation of installing php7 under mac

centos7 Detailed explanation of manual installation of PHP5.6.33

The above is the detailed content of Install php 7 under centos 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