Answer the question
In order to leave comments, you need to log in
[not relevant] How to run a Python script on shared hosting?
So far I've only used PHP. I'm trying to get familiar with python for web use. My hoster (apache there) wrote:
Python on our hosting is connected not as an Apache module, but as a separate software.
If you already have written CGI scripts, then before copying them to the server, you must do the following: 1. Make sure that the
scripts contain the correct path to the interpreter:
Python: /usr/local/bin/python
set permissions to 755 or -rwxr-xr-x.
Permissions can be changed using the control panel's file manager.
#!/usr/local/bin/python
import cgi
print("Hello world!")
Options +ExecCGI +FollowSymLinks -Indexes
AddHandler cgi-script .cgi .py
Answer the question
In order to leave comments, you need to log in
Look at the web server logs, everything should be written there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question