Python Script Execution for On-Demand Calculations - Is It Possible?

Hello everyone,  

I’m currently hosting a free website, and I’d like to ask whether it’s possible to use or execute Python scripts on the server side. The idea is to run some optimization calculations that involve a bit of processing, but these scripts would only be executed when requested by the user — not continuously or automatically.  

I understand that ProFreeHost has certain limitations for free hosting, but I wonder if there’s any supported way (perhaps via CGI, external API, or another method) to safely run such Python-based computations.  

Has anyone tried something similar, or could confirm whether this is feasible within the current hosting environment?  

Thank you very much for your time and help!  

Hi there!

To give you the short answer: No, ProFreeHost does not support Python scripting.

ProFreeHost free hosting plans are optimized for PHP and MySQL based applications. Yes, it’s awesome for general purpose sites (like WordPress or custom PHP scripts), however, the free servers are strictly optimized for PHP and MySQL. Even if you upload your .py files, the server doesn’t have a Python interpreter hooked up to the web server (Apache) to run them. The only native method for dealing with calculations is to re-implement the logic in PHP. PHP can be surprisingly convenient at calculations and optimizations as long as the data sets are not too massive.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.