Ferramentas do usuário

Ferramentas do site


linux:centos:apache:php

Install PHP 7.4 on CentOS 7

  • Instalar Repositório EPEL (Extra Packages for Enterprise Linux)
 yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
  • Instalar Repositório REMI (stable YUM repository for the PHP stack)
 yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 
  • Habilitar repositório do PHP 7.4
yum -y install yum-utils
yum-config-manager --enable remi-php74
  • Instalar o PHP 7.4 (Apache)
yum update
yum install -y php php-cli
  • Instalar o PHP 7.4 (NGINX)
yum update
yum install -y php-cli php-fpm
  • Instalando módulos do PHP
 yum install php-xxx 
  • Exemplos de módulos comuns do PHP
yum install  php-mysqlnd php-zip php-openssl php-ldap php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath 
linux/centos/apache/php.txt · Última modificação: 2022/07/03 20:23 por gustavo