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 types of files (.inc
for example) by PHP on an Infomaniak Web hosting so that they are processed in the same way as a .php
file.
Extensions recognized by PHP
Previously, you had to add the following line to 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.
To add support for a specific file type:
- Log in to the Infomaniak Manager (manager.infomaniak.com) from a web browser like Brave or Firefox
- Click on the icon at the top right of the interface (or navigate using the left sidebar menu, for example)
- Choose Hosting (Web & Domain universe)
- Directly click on the name of the relevant item in the displayed table
- Click on the name of the relevant site (in the Sites section)
- Click on the Advanced settings button
- Click on the Apache tab
- You will find the FPM Extensions field where you can add the desired extension
Link to this FAQ: