GNU/Linux >> Tutoriales Linux >  >> Cent OS

Cómo habilitar PHP 7.0 y httpd24 en Oracle Linux 7

PHP7 está disponible y es compatible con OL7. El canal de distribución de YUM debe habilitarse manualmente para que los paquetes RPM estén disponibles:

1. Edite /etc/yum.repos.d/public-yum-ol7.repo archivo y asegúrese de habilitar "ol7_software_collections ” repositorio.

[ol7_software_collections]
name=Software Collection Library release 3.0 packages for Oracle Linux 7 (x86_64)
baseurl=https://yum.oracle.com/repo/OracleLinux/OL7/SoftwareCollections/x86_64/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

2. Instale PHP7.0 y http24:

# yum install rh-php70-php rh-php70 httpd24-mod_ssl

3. Detenga cualquier otro servicio antiguo de httpd y también desactívelo:

# systemctl stop httpd
# systemctl disable httpd
# systemctl status httpd

4. Inicie el servicio httpd24 y ​​habilítelo también:

# systemctl start  httpd24-httpd24-httpd.service
# systemctl enable httpd24-httpd24-httpd.service
# systemctl status httpd24-httpd24-httpd.service

5. Prueba PHP7.0 y httpd24.

# echo '

' >/opt/rh/httpd24/root/var/www/html/phpinfo.php
# rpm -q elinks >/dev/null || yum install elinks
# elinks -dump http://localhost/phpinfo.php | head -15


Cent OS
  1. Cómo habilitar Snap en Linux Mint 20 e instalar paquetes Snap

  2. Cómo habilitar el reenvío de IP en Linux

  3. Cómo instalar y usar php Composer en Rocky Linux/Centos 8

  4. Cómo instalar y habilitar el repositorio EPEL en Rocky Linux/Centos 8

  5. Cómo ocultar la versión de PHP en Linux

Cómo migrar CentOS Linux a Oracle Linux

Cómo instalar y usar PHP Composer en Debian 11 Linux

Cómo instalar OpenCart en Oracle Linux 8

Cómo instalar Joomla en Oracle Linux 8

Cómo instalar, configurar y habilitar el servicio SSH en Linux

Cómo instalar y usar PHP Composer en distribuciones de Linux