Why does my browser download the website’s PHP files instead of displaying the pages?

Este contenido solo está disponible en rumano e inglés; a continuación se muestra el texto en inglés.

Why does my browser download the website’s PHP files instead of displaying the pages?

If your browser downloads a PHP file, the server may be delivering source code instead of executing it. Treat this as a potential security incident: temporarily restrict public access using a method that does not depend on PHP, and notify your server administrator or hosting provider.

Check whether the issue started after a PHP version change, a server configuration change or the deployment of new rules. The administrator should check how PHP files are assigned to a handler and whether the PHP service is working. Avoid applying configuration changes copied from elsewhere without checking them.

If files containing passwords or keys could have been downloaded, replace the affected credentials and review available logs. Restore public access after the issue has been fixed and tested.

PREGUNTAS RELACIONADAS

Aquí tienes algunas preguntas cuyas respuestas te pueden interesar. Respondemos a preguntas importantes y prácticas para nuestros clientes.

SUSCRÍBETE A LA NEWSLETTER

Suscríbete a nuestra newsletter. Solo la usamos para información importante.

Ilustración de suscripción a la newsletter