1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Enabling the support for some extensions by PHP
So that some file types (.inc for example) are processed by PHP in the same way as a .php file, you first need to add the following line to a .htaccess file:
AddType application/x-httpd-php .inc
This will prevent the contents of the file from being interpreted incorrectly by PHP and displayed as text when accessed using a browser.
Now you can manage file extensions using the FPM Extensions field on the dashboard for your hosting.
To add support for a specific file type:
- Open the admin console (https://login.infomaniak.com)
- Go to Web Hosting
- Click on the hosting/domain name concerned
- Under Sites, click on the name of the site
- At the bottom of the General tab, you'll find the FPM Extensions field, which will allow you to make the desired addition.