Forgive me if this is obvious or basic - I have a domain and have done the 'setup python app' from Cpanel to create a new application in Cpanel. I have the setup as follows in the attached pic. called python_app_en
I also added the .py extension under Apache handlers
The public_html folder contains the files/folders as in the attached pic called public_html
The cgi-bin folder contains the files/folders as in the attached pic called cgi_bin
Now if I browser to this link in my domain, the browser displays:
It works!
Python v3.5.9
(which seems to be the index.py script being run)
But how do I run my own script in the browser, say the testing.py script? I tried placing it as part of the URL as : http://www.domain.tld/testpython/testing.py
(I can go to the console and run my script there, but I want to execute from the browser)
What am I doing wrong?
Regards
Russell
I also added the .py extension under Apache handlers
The public_html folder contains the files/folders as in the attached pic called public_html
The cgi-bin folder contains the files/folders as in the attached pic called cgi_bin
Now if I browser to this link in my domain, the browser displays:
It works!
Python v3.5.9
(which seems to be the index.py script being run)
But how do I run my own script in the browser, say the testing.py script? I tried placing it as part of the URL as : http://www.domain.tld/testpython/testing.py
(I can go to the console and run my script there, but I want to execute from the browser)
What am I doing wrong?
Regards
Russell
Attachments
-
36.1 KB Views: 14
-
26.1 KB Views: 12
-
15.7 KB Views: 12
Last edited by a moderator: