Le 4 mai 2021, la plateforme Yahoo Questions/Réponses fermera. Elle est désormais accessible en mode lecture seule. Aucune modification ne sera apportée aux autres sites ou services Yahoo, ni à votre compte Yahoo. Vous trouverez plus d’informations sur l'arrêt de Yahoo Questions/Réponses et sur le téléchargement de vos données sur cette page d'aide.
How do I run Python scripts on HostGator?
My website is hosted at HostGator.
I'd like to write my website in Python so that my webpages are generated by a Python script.
However, despite Python being installed on HostGator, I am not able to run any Python scripts. I always see them as plain text.
Since HostGator is a fairly popular webhost, I guess that there's someone out there who knows how to solve my problem.
So, please, if I want to run Python script (e.g. a simple "Hello World") what do I do?
I set the permissions of the scripts at 755.
I tried :
#!/usr/bin/python
#!/usr/bin/env python
#!/usr/local/bin/python26
as the first line of my scripts.
4 réponses
- ?Lv 4il y a 1 décennieRéponse favorite
Is your file CHMOD to the right permissions?
Did you remember to add the interpreter on the 1st line?
- Anonymeil y a 6 ans
This Site Might Help You.
RE:
How do I run Python scripts on HostGator?
My website is hosted at HostGator.
I'd like to write my website in Python so that my webpages are generated by a Python script.
However, despite Python being installed on HostGator, I am not able to run any Python scripts. I always see them as plain text.
Since HostGator is a fairly...
Source(s) : run python scripts hostgator: https://tr.im/EBjDN - il y a 1 décennie
you can ask hostgator about your problem.they have 24*7 customer services.
or trey hostgator forum sections