Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
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 via PHP so that they are processed in the same way as a .php file.
Preamble
- Previously, you had to add the following line in a
.htaccessfile:AddType application/x-httpd-php .inc- This prevented the file content from being displayed as text instead of being correctly interpreted by PHP when accessed via a browser.
- 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:
- Click here to access the management of your product on the Infomaniak Manager (need help?).
- Click directly on the name assigned to the product in question.
- Click on Manage under Advanced settings:

- Click on the PHP / Apache tab.
- Edit the FPM Extensions field to add the desired extension.
- Click the button at the bottom of the page to save:

Link to this FAQ: