Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Manage PHP-interpreted file types
This guide explains how to activate on a Web hosting Infomaniak supports certain file types (.inc
e.g. by PHP so that they are treated in the same way as a file .php
.
Preamble
- Previously, the next line had to be added to a file
.htaccess
:AddType application/x-httpd-php .inc
- This prevented the contents of the file from being displayed in text during browser access instead of being correctly interpreted by PHP.
- Now you can manage file extensions via the field FPM Extensions in the Manager of your accommodation.
Manage PHP-recognized extensions
To add support for a specific file type:
- Click here in order to access the management of your product on the Manager Infomaniak (Need help?).
- Click directly on the nameallocated to the product concerned.
- Click on Manage under Advanced Parameters:
- Edit field FPM Extensions allowing you the desired addition:
Do not forget to save the changes at the bottom of the page.
Link to this FAQ: