Gilberto  Block

Gilberto Block

1595105580

Como Instalar o Servidor Web Apache no CentOS 8

Introdução

O servidor HTTP Apache é o servidor Web mais amplamente usado no mundo. Ele fornece muitas características poderosas, incluindo módulos carregáveis dinamicamente, suporte robusto de mídia e uma integração extensa com outros softwares populares.

Neste guia, você instalará um servidor web Apache com hosts virtuais em seu servidor CentOS 8.

Pré-requisitos

Você precisará do seguinte para completar este guia:

Passo 1 — Instalando o Apache

O Apache está disponível dentro dos repositórios de software padrão do CentOS, o que significa que você pode instalá-lo com o gerenciador de pacotes dnf.

Como o usuário sudo não root configurado nos pré-requisitos, instale o pacote Apache:

sudo dnf install httpd

Após confirmar a instalação, o dnf irá instalar o Apache e todas as dependências necessárias.

Ao completar o Passo 4 do tutorial de Configuração Inicial de Servidor com o CentOS 8 mencionado na seção de pré-requisitos, você já terá instalado o firewalld em seu servidor para exibir solicitações por HTTP.

Se você também planeja configurar o Apache para fornecer conteúdo por HTTPS, você também irá querer abrir a porta 443 habilitando o serviço https:

sudo firewall-cmd --permanent --add-service=https

Em seguida, recarregue o firewall para colocar essas novas regras em vigor:

sudo firewall-cmd --reload

Após o firewall recarregar, você está pronto para iniciar o serviço e verificar o servidor web.

#apache

What is GEEK

Buddha Community

Como Instalar o Servidor Web Apache no CentOS 8
Monique  Larson

Monique Larson

1596373499

Como instalar o Servidor Web Apache no CentOS 8

Introdução

O servidor HTTP Apache é o servidor Web mais amplamente usado no mundo. Ele fornece muitas características poderosas, incluindo módulos carregáveis dinamicamente, suporte robusto de mídia e uma integração extensa com outros softwares populares.

Neste guia, você instalará um servidor web Apache com hosts virtuais em seu servidor CentOS 8. Para uma versão mais detalhada deste tutorial, por favor, consulte Como instalar o Servidor Web Apache no CentOS 8.

Pré-requisitos

Você precisará do seguinte para completar este guia:

Passo 1 — Instalando o Apache

O Apache está disponível dentro dos repositórios de software padrão do CentOS, o que significa que você pode instalá-lo com o gerenciador de pacotes dnf.

Como o usuário sudo não root configurado nos pré-requisitos, instale o pacote Apache:

sudo dnf install httpd

Após confirmar a instalação, o dnf irá instalar o Apache e todas as dependências necessárias.

#apache #centos 8 #passo 4 da

How to install Apache web server on CentOS 8

Introduction

Apache HTTP server is the most used in the world. It offers many powerful features, including dynamically loaded modules, strong media compatibility, and extensive integration with other popular software tools.

Through this guide, you will install an Apache web server with virtual hosts on your CentOS 8 server.

Previous requirements

You will need the following to complete this guide:

Step 1: Install Apache

Apache is available within the default CentOS software repositories, which means you can install it with the package manager dnf.

Since we configured a non-root sudo user in the prerequisites, install the Apache package:

sudo dnf install httpd

Once the installation is confirmed, it will dnfinstall Apache and all the necessary dependencies.

By completing step 4 of the Initial Server Configuration with CentOS 8 guide mentioned in the prerequisites section, you have already installed firewalldon your server to supply requests via HTTP.

If you are also planning to configure Apache to provide content over HTTPS, you may also want to open the port 443by enabling the service https:

sudo firewall-cmd --permanent --add-service=https

Then reload the firewall for these new rules to take effect:

sudo firewall-cmd --reload

Once the firewall is reloaded, you are ready to start the service and check the web server.

Step 2: Check your web server

Once the installation is complete, Apache does not start automatically in CentOS, so you will have to start the Apache process manually:

sudo systemctl start httpd

Verify that the service works with the following command:

sudo systemctl status httpd

You will get a status activewhen the service is running:

Output

● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disa>
   Active: active (running) since Thu 2020-04-23 22:25:33 UTC; 11s ago
     Docs: man:httpd.service(8)
 Main PID: 14219 (httpd)
   Status: "Running, listening on: port 80"
    Tasks: 213 (limit: 5059)
   Memory: 24.9M
   CGroup: /system.slice/httpd.service
           ├─14219 /usr/sbin/httpd -DFOREGROUND
           ├─14220 /usr/sbin/httpd -DFOREGROUND
           ├─14221 /usr/sbin/httpd -DFOREGROUND
           ├─14222 /usr/sbin/httpd -DFOREGROUND
           └─14223 /usr/sbin/httpd -DFOREGROUND

...

As this result indicates, the service started successfully. However, the best way to check this is to request an Apache page.

You can access Apache’s default landing page to confirm that the software is working properly using its IP address: If you don’t know your server’s IP address, you can obtain it in several ways from the command line.

Type qto return to the command line, and then type:

hostname -I

This command will display all the network addresses of the host, so you will get some IP addresses separated by spaces. You can test each one in the web browser to determine if they work.

Alternatively, you can use curlto request your IP at icanhazip.com, which will provide you with your public IPv4 address as it appears in another location on the Internet:

curl -4 icanhazip.com

When you have the IP address of your server, enter it in the address bar of your browser:

http://your_server_ip

It will display the default Apache web page in CentOS 8:

Apache default page for CentOS 8

This page indicates that Apache is working properly. It also includes basic information about important Apache files and directory locations.

#centos #apache #centos 8

Monique  Larson

Monique Larson

1596805560

Cómo instalar el servidor dweb Apache en CentOS 8

Introducción

El servidor HTTP Apache es el más usado del mundo. Ofrece muchas características potentes, entre las que se incluyen módulos que se cargan de forma dinámica, una sólida compatibilidad con medios y amplia integración con otras herramientas de software populares.

A través de esta guía, instalará un servidor web Apache con hosts virtuales en su servidor de CentOS 8. Para acceder a una versión más detallada de este tutorial, consulte Cómo instalar el servidor web Apache en CentOS 8.

Requisitos previos

Necesitará lo siguiente para completar esta guía:

Paso 1: Instalar Apache

Apache está disponible dentro de los repositorios de software predeterminados de CentOS, lo cual significa que puede instalarlo con el administrador de paquetes dnf.

Ya que configuramos un non-root sudo user en los requisitos previos, instale el paquete Apache:

sudo dnf install httpd

Una vez confirmada la instalación, dnf instalará Apache y todas las dependencias necesarias.

Paso 2: Ajustar el firewall

Al completar el paso 4 de la guía de Configuración inicial del servidor con CentOS 8 que se mencionó en la sección de requisitos previos, ya habrá instalado firewalld en su servidor para suministrar las solicitudes a través de HTTP.

#apache #centos 8

Gilberto  Block

Gilberto Block

1595105580

Como Instalar o Servidor Web Apache no CentOS 8

Introdução

O servidor HTTP Apache é o servidor Web mais amplamente usado no mundo. Ele fornece muitas características poderosas, incluindo módulos carregáveis dinamicamente, suporte robusto de mídia e uma integração extensa com outros softwares populares.

Neste guia, você instalará um servidor web Apache com hosts virtuais em seu servidor CentOS 8.

Pré-requisitos

Você precisará do seguinte para completar este guia:

Passo 1 — Instalando o Apache

O Apache está disponível dentro dos repositórios de software padrão do CentOS, o que significa que você pode instalá-lo com o gerenciador de pacotes dnf.

Como o usuário sudo não root configurado nos pré-requisitos, instale o pacote Apache:

sudo dnf install httpd

Após confirmar a instalação, o dnf irá instalar o Apache e todas as dependências necessárias.

Ao completar o Passo 4 do tutorial de Configuração Inicial de Servidor com o CentOS 8 mencionado na seção de pré-requisitos, você já terá instalado o firewalld em seu servidor para exibir solicitações por HTTP.

Se você também planeja configurar o Apache para fornecer conteúdo por HTTPS, você também irá querer abrir a porta 443 habilitando o serviço https:

sudo firewall-cmd --permanent --add-service=https

Em seguida, recarregue o firewall para colocar essas novas regras em vigor:

sudo firewall-cmd --reload

Após o firewall recarregar, você está pronto para iniciar o serviço e verificar o servidor web.

#apache

Comment installer le serveur Web Apache sur CentOS 8

Introduction

Le serveur HTTP Apache est le serveur web le plus utilisé au monde. Il offre de nombreuses fonctionnalités puissantes, notamment des modules à chargement dynamique, une prise en charge robuste des médias et une intégration poussée avec d’autres logiciels populaires.

En suivant ce guide, vous allez installer un serveur web Apache avec des hôtes virtuels sur votre serveur CentOS 8. Pour une version plus détaillée de ce tutoriel, veuillez vous référer à Comment installer le serveur Web Apache sur CentOS 8.

Conditions préalables

Vous aurez besoin des éléments suivants pour suivre ce guide :

Étape 1 — Installation d’Apache

Apache est disponible dans les référentiels de logiciels par défaut de CentOS, ce qui signifie que vous pouvez l’installer avec le gestionnaire de paquets dnf.

En tant qu’utilisateur non root sudo configuré dans les conditions préalables, installez le package Apache :

sudo dnf install httpd

Après avoir confirmé l’installation, dnf installera Apache et toutes les dépendances requises.

Étape 2 – Réglage du pare-feu

En réalisant l’étape 4 du guide Configuration initiale du serveur avec CentOS 8 mentionné dans la section conditions préalables, vous auvez déjà installé firewalld sur votre serveur pour répondre aux demandes sur HTTP.

#apache #le serveur web #centos 8