logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Deploy Python Server (Managed Server prov. by IONOS)
Author
Kamedin



Joined: 08 Jul 2024
Posts: 1
Location: Germany, Nienburg

PostPosted: Tue 16 Jul '24 12:28    Post subject: Deploy Python Server (Managed Server prov. by IONOS) Reply with quote

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


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 08 Aug '24 9:30    Post subject: Reply with quote

The Flask docs shows how to do it Wink

https://flask.palletsprojects.com/en/3.0.x/deploying/apache-httpd/

if you still have a question please ask again.
Back to top


Reply to topic   Topic: Deploy Python Server (Managed Server prov. by IONOS) View previous topic :: View next topic
Post new topic   Forum Index -> Apache