Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

239
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda