Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Solve a Perl or Python script issue
This guide details the use of Perl or Python scripts on Web Hosting Infomaniak.
Preamble
- 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 via the CGI (Common Gateway Interface) protocol, thus offering the possibility to create interactive and responsive web pages based on user interactions with the site.
- However, for security reasons, **Infomaniak has chosen to disable the ability to run scripts written in Perl or Python via this specific module (CGID) of Apache on its shared hosting offers.**
- Therefore, you should consider **changing your plan** to a Cloud Server plan if you are currently on a shared web hosting plan.
Using scripts
Here is some practical information:
- The path to the Python interpreter is
/usr/bin/python
. mod_python
is not supported.- Running scripts without the
pl
orcgi
extension is not possible. However, a file with a.pl
extension 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: /dossier/wwwdata/collection/vignettes/blabla.PL.12.34.56.gif
While the uploaded file is a simple GIF image with a filename type "blabla.PL.12.34.56.gif
", this is due to the name of the files in question. To bypass the issue, simply rename your files.
Link to this FAQ: