Base de conhecimento

1000 perguntas frequentes, 500 tutoriais e vídeos explicativos. Aqui, você encontra apenas soluções!

Manage file types interpreted by PHP

This guide explains how to enable support for certain file types (e.g., .inc) on an Infomaniak Web Hosting account so that they are processed in the same way as a .php file.

 

Preamble

  • Previously, you had to add the following line to a .htaccess file:
    • AddType application/x-httpd-php .inc
    • This prevented the file content from being displayed as plain text when accessed via a browser, instead of being correctly interpreted by PHP.
  • Now you can manage file extensions via the FPM Extensions field in the Manager of your hosting.

 

Manage extensions recognized by PHP

To add support for a specific file type:

  1. Click here to access your site management on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site in question:
  3. Click on Manage advanced settings:
  4. Click on the PHP / Apache tab:
  5. Edit the FPM Extensions field to add the desired extension.
  6. Click the button at the bottom of the page to save:

Link para esta FAQ: https://faq.infomaniak.com/82


Esta seção de perguntas frequentes foi útil?