Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Manage the file types interpreted by PHP
This guide explains how to enable support for certain file types (e.g., .inc
) by PHP on an Infomaniak Web hosting so that they are processed in the same way as a .php
file.
Preamble
- Previously, you had to add the following line in a
.htaccess
file:AddType application/x-httpd-php .inc
- This prevented the file's 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 your hosting Manager.
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 relevant product.
- Click on Manage under Advanced Settings:
- Edit the FPM Extensions field to make the desired addition:
Do not forget to save the changes at the bottom of the page.
Link to this FAQ: