1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Is it possible to use Perl or Python scripts?
This guide answers the question: can Perl or Python scripts be used on a site hosted by Infomaniak?
Depending on the hosting offer and the method...
For security reasons, the use of Perl & Python language, via Apache (and thus the CGID module), has been disabled. It is therefore not possible to use these scripts via Apache with a shared web hosting offer. However, it is possible to change offers for a Cloud server offer. If you are currently on a shared web hosting, you should therefore envisage changing offer. This is done in a transparent manner and everything is explained in this practical guide.
In any event, Perl & Python can still be used in SSH and via the PHP commands which run an executable (exec, shell_exec, ...) with all our fee-paying hosting offers.
How to be sure that it will work?
Python is available for use via CGI, thz cgiwrap has been patched to allow use of the .py extension in addition to .cgi and .pl. On the other hand, we do not support mod_python. The python interpreter's path is /usr/bin/python
We do not allow the execution of scripts without the pl or cgi extension, however a. pl file may exist and be called via a URL without the extension.
If you obtain the following error message:
CGIWrap Error: Execution of this script not permitted
Execution of that script is not permitted for the following reason:
(1) Script file not found.
Request Data:Extra Path Info: /dossier/wwwdata/collection/vignettes/blabla.PL.12.34.56.gif
whereas the file loaded is a simple GIF image with a file name such as "blabla.PL.12.34.56.gif", this come from the name of the files in question. To circumvent the problem, simply rename your files.