1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Solve an issue with a Perl or Python script
This guide details the use of Perl or Python scripts on Infomaniak Web Hosting.
Perl and Python Scripts & CGI
Perl and Python scripts are often used with Apache's CGID module to generate dynamic content on web servers. This module allows Apache to process requests using scripts written in Perl or Python through the Common Gateway Interface (CGI) protocol, thereby enabling the creation of interactive and responsive web pages based on user interactions with the site.
However, for security reasons, Infomaniak has chosen to disable the ability to execute scripts written in Perl or Python via this specific Apache module (CGID) on its shared hosting offers.
Details
- The location (path) of the Python interpreter is /usr/bin/python
- mod_python is not supported
- Running scripts without the .pl or .cgi extension is not possible; however, a .pl file can exist and be called via a URL without the extension
If you receive 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: /folder/wwwdata/collection/thumbnails/blabla.PL.12.34.56.gif
even though the loaded file is a simple GIF image with a filename like "blabla.PL.12.34.56.gif," this is due to the filenames in question. To work around the issue, simply rename your files.