menu
small_header_webhosting.svg

netcup wiki

Webhosting

Python

Learn how to use Python with your web hosting.

Python is included in our web hosting 4000 and web hosting 8000 plans.

The Python module can be found in the Webhosting Control Panel (WCP) in the Dashboard under Dev Tools.

Python module in the WCP

Python integration is handled by a Phusion Passenger server with a WSGI interface. Therefore, your applications must be written specifically for WSGI.

You can find more information about Passenger in the official documentation: Pushion Passenger Documentation

Module settings

Activate: Enables Python support for the corresponding domain.

Disable: Deactivates Python support for the corresponding domain.

Rewrite Config: Applies changes to the settings.

Application Reload: Only restarts the application server.

Warning Any changed settings will only be applied after the application is restarted. Clicking Application Reload creates the file restart.txt in the App Root/tmp/ directory. This causes the Passenger server to reload the application.

App Root: Specifies the root directory of the application. It is relative to the web space and should not be located in the document root for security reasons.

Startup File: This file starts the execution of your application. The file must first be uploaded to Files > Plus Icon in the app root directory.

Python Version: The currently available Python versions are displayed here.

Mode: If the mode is set to Production, no error messages are displayed. If the mode is set to Development, error messages are displayed.

Ensure that no application is stored in the domain's document root (index.html, index.php, etc.).

Frequently Asked Questions (FAQ)

Can I use Python via CLI? No, it is not possible to use Python via CLI with our web hosting plans. It can only be managed via the application in the Webhosting Control Panel (WCP) in a browser.
Can I use Python via SSH or Cron? Python is provided in a secure environment within Phusion Passenger and therefore cannot be executed via SSH or Cron. It can only be managed via the application in the Webhosting Control Panel (WCP) in your browser.
My web hosting plan does not include Python. Can I add it later? To add Python to your web hosting, you must upgrade to web hosting 4000 or web hosting 8000.
How can I display error messages?

Set the mode in the settings to Development to see error messages.

The warning message "Startup file does not exist" appears. What should I do? Make sure you have specified the correct app root and that your startup file is stored correctly. If necessary, try using a different browser.
Where can I find more instructions on using Python?

Official Python Documentation

Flask Documentation

Python Quickstart Tutorial

Feel free to have a look at the netcup Forum. You will find helpful answers and support from other users.

Last update: 19/08/2025