Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Deploy Python Server (Managed Server prov. by IONOS) |
|
Author |
|
Kamedin
Joined: 08 Jul 2024 Posts: 1 Location: Germany, Nienburg
|
Posted: Tue 16 Jul '24 12:28 Post subject: Deploy Python Server (Managed Server prov. by IONOS) |
|
|
Good morning everybody!
I am currently building and deploying websites using PHP for the backend. The reason is that my webspace provider is IONOS and they use Apache and for that, i just need to upload my files and it works.
www . kamed.in
In my job i work with Python in the backend and i want to use Python as backend too for my private Sites.
The problem is that i dont know i can make my webspace recognize my Flask Server as such.
I know that i have to use something called "wsgi" and for that i need particular Apache-Modules but my research did not help me clarify what that is and how to do that.
Here are the technical details:
Apache Version of my Webspace - Server: 2.4.56
According to IONOS, those are the Apache Modules that are installed on my Webspace:
Code: | mod_actions
mod_alias
mod_auth_basic
mod_authn_file
mod_authz_groupfile
mod_authz_host
mod_authz_user
mod_autoindex
mod_deflate
mod_dir
mod_env
mod_expires
mod_headers
mod_include
mod_mime
mod_negotiation
mod_rewrite
mod_setenvif
mod_speling |
I created a little mini applicatiopn for test purposes. Nothing wild. You press a button what sends a request to the flask server and displays the responsebody. This is how my backend structure (Directory "backend") and my Flask-Server looks like:
https://github.com/DevKame/sport_calendar/blob/main/Screenshot%202024-07-16%20122308.png
If someone could give a few tipps how to start adressing my issue of deploying a python - server on an apache server i would appreciate!
If its relevant, here are the installed Python Modules of my webspace: https://hastebin.com/share/difetupuho.csharp |
|
Back to top |
|
James Blond Moderator
![](images/avatars/3066243e8d00d4770e.gif)
Joined: 19 Jan 2006 Posts: 7342 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|