Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Managing file types interpreted by PHP
This guide explains how to enable support for certain file types (e.g., .inc) by PHP on Infomaniak Web Hosting, so that they are processed in the same way as a .php file.
File Extensions Recognized by PHP
Previously, you had to add the following line to an .htaccess file:
AddType application/x-httpd-php .inc
This prevented the file's content from being displayed as text instead of being properly interpreted by PHP when accessed through a web browser.
Now you can manage file extensions via the FPM Extensions field in your hosting's Manager.
To add support for a specific file type:
- Log in to the Infomaniak Manager (manager.infomaniak.com) using a web browser like Brave or Firefox.
- Click on the icon in the top right corner of the interface (or navigate using the left sidebar menu, for example).
- Select Hosting (under the Web & Domain universe).
- Click directly on the name of the relevant object in the displayed table.
- Click on the name of the concerned site (under Sites).
- Click on the Advanced Settings button.
- Switch to the Apache tab.
- You'll find the FPM Extensions field where you can add the desired extension.
Link to this FAQ: