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

241
Visualizações
Apache, Apache Default folder, Apache PHP not parsing

I have been messing around with apache in the terminal on macOS Catalina 10.15.4. I was following tutorial & tutorial2. I got everything working, up to a point. The localhost displays just fine and I can add html websites to the default domain and they load perfectly. My issues are:

  1. PHP is not parsing from default apache folder. Just displays code in browswer.
  2. I have tried editing the document root in httpd.conf, but nothing changes
  3. I have tried to undo most of what I have done so far, but now I am getting this error:

'Set the 'ServerName' directive globally to suppress this message'

Any advice? Is there a way to reset all apache's settings to their default values?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

make certain that in your /usr/local/etc/http/httpd.conf you have something like:

LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so

<IfModule php7_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
</IfModule>

ymmv. I am assuming you brewed in apache, and you have php installed.

This works on mojave, with apache and php7.2 brewed. Adapt to your own setup. Never wanted ever to downgrade to catalina, so i dunno how the apple and brew crews mangled the configurations, but should be close.

over 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