Knowledgebase Home / How to Setup Python Application in cPanel
// View Comments //

How to Setup Python Application in cPanel

Setting up a Python application can be straightforward and efficient with the right tools. This guide will walk you through the process of quickly setting up a Python application using the cPanel interface.

Experience Seamless Python Hosting with Veerotech

At Veerotech, our hosting infrastructure is built to natively support Python, offering you speed, reliability, and a hassle-free Python installer with our hosting plans.

Supported Python Versions

We support a range of Python versions to meet your development needs, including:

  • Python 2.7.18
  • Python 3.3.7
  • Python 3.4.10
  • Python 3.5.9
  • Python 3.6.15
  • Python 3.7.17
  • Python 3.8.18
  • Python 3.9.19
  • Python 3.10.14
  • Python 3.11.9

Quick Steps

  1. Log in to cPanel:
  2. Navigate to the Setup Python App
  3. Create a New Python Application
  4. Fill in the Application Setup Form
  5. Finish Setting Up the Application
  6. Install App Dependencies
  7. Set Up Environment Variables (Optional)
  8. Save and Restart Your Application

Steps to Set Up a Python Application in cPanel

Setting up a Python application in cPanel

Setting up a Python application in cPanel

Log in to your cPanel account first. Then navigate to the SOFTWARE section of cPanel, and click on the Setup Python App icon

Python application in cPanel

Python application in cPanel

Create a New Python Application by clicking on the Create Application button

Please fill in the required fields on the application setup form as follows:

    • Python version: Python version that your app will use to run and install dependencies.
    • Application root: The directory path where all app files will reside.
    • Application URL: the URL to enter in the browser to visit the app.
    • Application startup file: The Path to wsgi.pg file. It must be specified as a filename.
    • Application Entry point: This can be left blank. cPanel will auto-populate this section unless your application needs a specific value, in which case you add it.
    • Environment Variables: Optionally you can add environment variables to your application.
Python application in cPanel

Python application in cPanel

After you are done, click “CREATE” to complete the app setup.

Python application in cPanel

Python application in cPanel

You will have the command to enter your virtual environment right from the start. This is useful for manually executing commands via SSH or through the terminal menu in cPanel.

Python application in cPanel

Python application in cPanel

Click Run Pip Install to install your app dependencies.

You can also set up environment variables by clicking Add Variable. After entering the correct data, click Done to create the variable.

Python application in cPanel

Python application in cPanel

When everything is done, Save and RESTART your app.

Conclusion

Congratulations, you have successfully learned how to Set up a Python Application in cPanel.


If you have any web hosting questions please feel free to reach out to us. We're happy to help.
Shared Hosting | Reseller Hosting | Managed WordPress Hosting | Fully Managed VPS Hosting

Our Guiding Principles

  • Provide consistent, stable, and reliable web hosting services.
  • Ensure rapid ticket response and quick resolutions to issues.
  • Never saturate or over-provision servers to ensure stability and speed for our customers.
  • Use only high-quality enterprise-class hardware to ensure minimal downtime from hardware failures.
  • Provide clear pricing with no hidden fees or gotchas.
Subscribe to comment notifications
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments