Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
No se pudo determinar de manera confiable el nombre de dominio completo del servidor para MacBook

La primera vez que obtuve un nuevo MBP 2016. Intentando configurar PHP, MySQL y Apache. Inició Apache usando el comando

 sudo apachectl restart

Luego instaló PHP por

 brew install php71 --with-httpd24

También hice los siguientes cambios...

 # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # DirectoryIndex index.html index.php SetHandler application/x-httpd-php ServerName dev-server

Además, actualizó lo mismo en el archivo host /etc/hosts/

Pero, cada vez que intento detener/reiniciar mi apache usando el comando sudo apachectl restart o sudo apachectl stop , obtengo los siguientes errores.

 AH00557: httpd: apr_sockaddr_info_get() failed for Sureshs-MacBook-Pro.local AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message httpd not running, trying to start

Pero, extrañamente, cuando ejecuto cualquier archivo PHP desde mi navegador http://localhost/index.php , funciona bien. Como en mi archivo index.php, estoy usando el código <?php phpinfo(); ?> Muestra la versión de PHP Version 7.1.4 cargada.

Intenté mucho, pero no tengo idea de qué está fallando en dónde.

---ACTUALIZAR---

Después de actualizar 127.0.0.1 Sureshs-MacBook-Pro.local en mi /private/etc/hosts , se resolvió un error. Ahora recibo solo un error a continuación.

 AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Sureshs-MacBook-Pro.local. Set the 'ServerName' directive globally to suppress this message
about 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

Finalmente, resolví esto actualizando ServerName localhost:8080 en el archivo /usr/local/etc/apache2/2.4/httpd.conf . Era un archivo httpd.conf diferente que no conocía.

Además, para Apache start/restart/stop el siguiente comando sudo /usr/sbin/apachectl start funciona para mí.

about 4 years ago · Santiago Trujillo Relatório

0

Según mensaje:

Configure la directiva 'ServerName' globalmente para suprimir este mensaje.

Debe identificar el archivo de configuración de Apache httpd.conf mediante:

 apachectl -t -D DUMP_INCLUDES

luego edítelo y descomente la línea con ServerName (asegúrese de que tenga el nombre de servidor válido). P.ej

 ServerName localhost
about 4 years ago · Santiago Trujillo Relatório

0

abrir archivo httpd.conf

 vi /etc/httpd/conf/httpd.conf

añadir a la primera línea

 ServerName localhost

systemctl reiniciar httpd

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda